# fs-async-promisify

> Node Async FS - File System promsified - promisify - promises

Latest version **1.0.0** (published 2020-05-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install fs-async-promisify
pnpm add fs-async-promisify
yarn add fs-async-promisify
bun add fs-async-promisify
```

## 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 | 1.0.0 |
| Published | 2020-05-20 |
| First published | 2020-05-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Edouard Rucquoy |
| Maintainers | erucquoy |
| Keywords | fs, async, promises, fs-async, fs-promises, fs-extra |

## Links

- npm: https://www.npmjs.com/package/fs-async-promisify
- Repository: https://github.com/erucquoy/fs-async-promisify
- Homepage: https://github.com/erucquoy/fs-async-promisify#readme
- Issues: https://github.com/erucquoy/fs-async-promisify/issues
- npm.io page: https://npm.io/package/fs-async-promisify

## 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

- 1.0.0 (latest) — 2020-05-20

## README

# fs-async-promisify
### Node Async FS - File System promsified - promisify - promises

## Install

```sh
npm i -S fs-async-promisify
```

## How to use

You get exactly the **same result** as with ***fs.functionName(args)***

```js
const fsAsync = require('fs-async-promisify')

/* async function way to go */
async function testFsAsync() {
	try {
		const arrayOfFileName = await fsAsync.readdir('/path')
		const stat = await fsAsync.lstat('/path')
	}
	catch (err) {
		console.error(err)
	}
}

/* Promise way to go */
fsAsync.readdir('/path')
	.then(readdirResult => {
		const arrayOfFileName = readdirResult

	})
	.catch(err => {
		console.error(err)
	})

fsAsync.lstat('/path')
	.then(stat => {
		// stat = fs.Stats instance
	})
	.catch(err => {
		console.error(err)
	})

```

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