fs-then-native
Wraps the Node.js fs library with a Promise API using whichever `Promise` implementation is available
Last updated 9 years ago by 75lb .
MIT · Repository · Bugs · Original npm
$ cnpm install fs-then-native 
SYNC missed versions from official npm registry.

view on npm npm module downloads Build Status Coverage Status Dependency Status js-standard-style

fs-then-native

A minimal wrapper around the Node.js fs library adding a Promise API. It uses whichever Promise implementation is available, leaving responsibility one exists to the user.

Synopsis

fs.readFile('file.txt', 'utf8')
  .then(content => {
    // process file content
  })
  .catch(err => {
    // handle exception
  })

© 2016-17 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.

Current Tags

  • 2.0.0                                ...           latest (9 years ago)

1 Versions

  • 2.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org