# fs-store-async

> Async interface on node-fs-store

Latest version **0.3.3** (published 2020-09-08) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.3 |
| Published | 2020-09-08 |
| First published | 2020-09-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jimb Esser |
| Maintainers | jimbly |
| Keywords | fs, file, disk, store, fs-store, file-store, cache |

## Links

- npm: https://www.npmjs.com/package/fs-store-async
- Repository: https://github.com/Jimbly/node-fs-store-async
- Issues: https://github.com/Jimbly/node-fs-store-async/issues
- npm.io page: https://npm.io/package/fs-store-async

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

- 0.3.3 (latest) — 2020-09-08
- 0.3.2 — 2020-09-08

## README

node-fs-store-async
===================

Data storage compatible, async, version of [node-fs-store](https://github.com/Jimbly/node-fs-store).

Use temporarily while migrating to a purely async API.

Example
```javascript
const { createFileStore } = require('fs-store-async');

createFileStore('example_data.json', function (err, my_store) {
  // Get a value, providing a default
  let number_of_runs = my_store.get('number_of_runs', 0);
  ++number_of_runs;
  // Store a value (will be written to disk asynchronously)
  my_store.set('number_of_runs', number_of_runs, () => console.log('async write finished'));
  console.log('This example has run ' + number_of_runs + ' time(s)');
});
```

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