omni-vfs-local
v0.0.1
Published
Local file system implementation for omni-vfs.
Downloads
5
Readme
omni-vfs-local
Local file system implementation for omni-vfs.
Install
$ npm install omni-vfs-local
Usage
import OmniLocal from 'omni-vfs-local';
const root = '/path/to/root';
const vfs = new OmniLocal(root);
vfs.readdir('some/directory').then((files) => {
console.log(files);
});
API
Check out the Base API for more methods.
new OmniLocal(root: string)
root
is the path in which the VFS will be rooted, all method calls are relative to this.