npm.io
2.0.14 • Published 12h ago

@themartiancompany/opfs

Licence
AGPL-3.0
Version
2.0.14
Deps
2
Size
102 kB
Vulns
0
Weekly
542
Stars
2

OPFS Module (@themartiancompany/opfs)

NPM version

Browser-compatible fs module obtained combining the Happy OPFS and the OPFS Tools modules.

OPFS stands for origin private file system and it is a file system API for manipulating local files in a browser environment.

Installation

To install a locally built version of the library run

$ make \
    all

An opfs-<version>.tgz npm archive will be generated in the root of the repository.

To install the library system-wide run

# make \
    install-npm

To install it as a DogeOS system package from the Ur uncensorable user repository and application store run

ur \
  "nodejs-opfs"

A mirror of the Ur universal recipe has been made available on The Martian Company's Github at nodejs-opfs-ur.

To download the library from the NPM Registry run

npm \
  install \
  --save \
    "@themartiancompany/opfs"

Documentation

For API documentation refer to the Happy OPFS, OPFS Tools and File System API.

Javascript

If you are looking for an example of how to write a full computer application composed of only Bash programs and Node modules but which runs the same and with zero modifications regardless of whether it has available for display a terminal or a browser window, you can look at the Ahsi program, written using the Crash Javascript and Crash Bash libraries.

Refer to the Ahsi repository for more information about installing and running it.

License

This software repository is released under the terms of the GNU Affero General Public License version 3.

Keywords