Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loilo/nedb
A nedb wrapper with Promises
https://github.com/loilo/nedb
Last synced: about 23 hours ago
JSON representation
A nedb wrapper with Promises
- Host: GitHub
- URL: https://github.com/loilo/nedb
- Owner: loilo
- License: mit
- Created: 2019-07-07T19:50:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-07T22:21:44.000Z (over 5 years ago)
- Last Synced: 2025-02-11T16:41:24.693Z (10 days ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NeDB with Promises
This is an extremly thin wrapper around the [NeDB](https://www.npmjs.com/package/nedb) library, using [Proxies](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Proxy) with [tapsig](https://www.npmjs.com/package/tapsig).
## Usage
The API is almost exactly the same as in NeDB 1.8 with two key differences:- Obviously, the callback parameters are omitted.
- Because callbacks are omitted, `.find()` and `.count()` need to always be followed up with `.exec()` to yield a result.## Installation
```bash
npm install --save @loilo/nedb
```