JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 218508
  • Score
    100M100P100Q161798F
  • License MIT

Wraps the Node.js fs library with a Promise API using whichever `Promise` implementation is available

Package Exports

  • fs-then-native

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fs-then-native) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.