# fs-then-native

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

Latest version **2.0.0** (published 2017-02-08) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2017-02-08 |
| First published | 2016-10-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Lloyd Brookes |
| Maintainers | 75lb |
| Keywords | fs, then, promise, native, promises, readFile, writeFile |

## Links

- npm: https://www.npmjs.com/package/fs-then-native
- Repository: https://github.com/75lb/fs-then-native
- Homepage: https://github.com/75lb/fs-then-native#readme
- Issues: https://github.com/75lb/fs-then-native/issues
- npm.io page: https://npm.io/package/fs-then-native

## 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) — 2017-02-08
- 1.0.2 — 2016-10-09
- 1.0.1 — 2016-10-09
- 1.0.0 — 2016-10-09
- 0.1.2 — 2016-10-09
- 0.1.1 — 2016-10-07
- 0.1.0 — 2016-10-05

## README

[![view on npm](http://img.shields.io/npm/v/fs-then-native.svg)](https://www.npmjs.org/package/fs-then-native)
[![npm module downloads](http://img.shields.io/npm/dt/fs-then-native.svg)](https://www.npmjs.org/package/fs-then-native)
[![Build Status](https://travis-ci.org/75lb/fs-then-native.svg?branch=master)](https://travis-ci.org/75lb/fs-then-native)
[![Coverage Status](https://coveralls.io/repos/github/75lb/fs-then-native/badge.svg?branch=master)](https://coveralls.io/github/75lb/fs-then-native?branch=master)
[![Dependency Status](https://david-dm.org/75lb/fs-then-native.svg)](https://david-dm.org/75lb/fs-then-native)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)

# fs-then-native

A minimal wrapper around the [Node.js fs library](https://nodejs.org/dist/latest-v6.x/docs/api/fs.html) adding a Promise API. It uses whichever `Promise` implementation is available, leaving responsibility one exists to the user.

## Synopsis

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

* * *

&copy; 2016-17 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).

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