HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/frenchy/www/french-american.org/releases/20210414070604Z/node_modules/then-fs/README.md
# then-fs

  Promised version of the node.js `fs` module.
  All non-callback-taking functions of fs are simply inherited.

[![Build Status](https://travis-ci.org/then/fs.png?branch=master)](https://travis-ci.org/then/fs)
[![Dependency Status](https://gemnasium.com/then/fs.png)](https://gemnasium.com/then/fs)
[![NPM version](https://badge.fury.io/js/then-fs.png)](http://badge.fury.io/js/then-fs)

## Installation

    $ npm install then-fs

## API

  The API for `then-fs` is exactly that of the built in `fs` module except that any function which normally takes a callback returns a promise instead.

  Example:

```js
function readJSON(path) {
  return fs.readFile(path, 'utf8').then(JSON.parse)
}
readJSON(__dirname + '/package.json')
  .done(function (obj) {
    console.dir(oj)
  })
```

## License

  MIT