# then-fs

> promised FS

Latest version **2.0.0** (published 2015-05-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install then-fs
pnpm add then-fs
yarn add then-fs
bun add then-fs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2015-05-18 |
| First published | 2013-08-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 22 |
| Author | Nathan Zadoks |
| Maintainers | nathan7, forbeslindesay |
| Keywords | promise, then, fs, core |

## Links

- npm: https://www.npmjs.com/package/then-fs
- Repository: https://github.com/then/fs
- Issues: https://github.com/then/fs/issues
- npm.io page: https://npm.io/package/then-fs

## Dependencies (1)

- [promise](https://npm.io/package/promise.md) >=3.2 <8

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2015-05-18
- 1.0.8 — 2015-02-25
- 1.0.7 — 2015-02-03
- 1.0.6 — 2014-04-30
- 1.0.5 — 2014-04-27
- 1.0.4 — 2014-02-14
- 1.0.3 — 2013-08-16
- 1.0.2 — 2013-08-16
- 1.0.1 — 2013-08-16
- 1.0.0 — 2013-08-16

## README

# 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

---
_Source: https://npm.io/package/then-fs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
