1.0.7 • Published 8 years ago

abstractfs v1.0.7

Weekly downloads
7
License
ISC
Repository
github
Last release
8 years ago

Node Abstract Filesystem

A very basic and experimental filesystem wrapper for node, allowing the same interface to be used across multiple filesystem implementations.

Currently only supports Local, but should be easy enough to extend. It is also highly untested, so use it at your own risk. That being said, if you notice any issues feel free to open an issue or fix it and make a pull request.

Installation

npm install abstractfs

Features

  • Promises via bluebird
  • Prefixing of paths
  • One unified API for every filesystem type, no worrying about special packages

Example

const AbstractFS = require('abstractfs');

const filesystem = new AbstractFS.Filesystem(new AbstractFS.Adapters.Local('./'));

filesystem.write('test.txt', 'Testing data').then(() => console.log('Written!')).catch((e) => console.log(e, e.stack));

Credits

This module was heavily inspired by and follows the API of Flysystem.

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago