ffs

A high-level promised wrapper on Node's FS module. For fuck's sake!

ffs is not actively maintained anymore (bugfixes may still be released). The author has moved to working on io.filesystem.
Last updated 7 years ago by killdream .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install ffs 
SYNC missed versions from official npm registry.

ffs Build Status Dependencies Status

A high-level promised wrapper on Node's FS module. For fuck's sake!

Everything is curried and promised for your convenience. Take a look at the docs/api.doll file for an overview of the types and functions in the API.

Example

var ffs         = require('ffs')
var combinators = require('pinky-combinators')
var all         = combinators.all

files = all([ffs.read('a.txt'), ffs.read('b.txt'), ffs.read('c.txt')])
all([ffs.makeRecursive('foo/bar/baz'), files])
 .then(function(xs){ return xs.reduce(function(a,b){ return a + b }, '') })
 .then(ffs.write('utf8', 'foo/bar/baz/'))

Installing

Just grab it from NPM:

$ npm install ffs

Documentation

A quick reference of the API can be built using Calliope:

$ npm install -g calliope
$ calliope build

Tests

You can run all tests using Mocha:

$ npm test

Licence

MIT/X11. ie.: do whatever you want.

Current Tags

  • 0.1.2                                ...           latest (7 years ago)

3 Versions

  • 0.1.2 [deprecated]           ...           7 years ago
  • 0.1.1 [deprecated]           ...           8 years ago
  • 0.1.0 [deprecated]           ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 2
Last Day 0
Last Week 1
Last Month 1
Dependencies (3)
Dev Dependencies (7)

Copyright 2014 - 2016 © taobao.org |