0.0.4 • Published 10 years ago

clefs v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

clefs

Clefs logo

A pluggable isomorphic file system abstraction

Getting started

Installing

npm i -S clefs localstorage-fs

Node.js

import clefs from 'clefs';
import clefsFs from 'clefs-fs';

const fs = clefs([clefsFs]);

Browser

import clefs from 'clefs/browser';
import localstorage from 'clefs-localstorage';

const fs = clefs([localstorage]);

Usage

const fileContents = await fs.readFile('/path/to/file.txt');
console.log(fileContents);

Roadmap

  1. clefs-dropbox
  2. clefs-drive
  3. clefs-box
  4. Browser tests
  5. Support the full fs api

Why clefs?

Clefs have layers.

Sure, but why would I use clefs?

Write through from a local file system or local storage to a cloud file storage provider. Has a pleasant promise-based interface that works nicely with async and await.

Special Thanks

Special thanks to jonadab for the creative commons licensed clef image.

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago