0.0.1 • Published 8 years ago

omni-vfs-local v0.0.1

Weekly downloads
5
License
-
Repository
-
Last release
8 years ago

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.