Socket
Socket
Sign inDemoInstall

nedb-async

Package Overview
Dependencies
103
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.1.3

dist/index.d.ts

35

package.json
{
"name": "nedb-async",
"version": "0.1.2",
"version": "0.1.3",
"description": "Promise wrapper for Nedb that makes it possible to use all Nedb all cursor modifiers.",

@@ -9,5 +9,17 @@ "repository": {

},
"main": "./dist/index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/**/*"
],
"scripts": {
"build": "tsc -p ./tsconfig.json"
"build": "tsc -p tsconfig.json",
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
"lint": "tslint -p tsconfig.json",
"prepare": "yarn build",
"prepublishOnly": "yarn test && yarn lint",
"preversion": "yarn lint",
"test": "jest --config jestconfig.json",
"version": "yarn format && git add -A src",
"postversion": "git push && git push --tags"
},

@@ -25,10 +37,21 @@ "keywords": [

],
"author": "Akuma Isaac Akuma",
"author": {
"name": "Akuma Isaac Akuma",
"email": "akumaisaacakuma@gmail.com"
},
"license": "MIT",
"dependencies": {
"nestdb": "2.0.0"
"nedb": "^1.8.0"
},
"devDependencies": {
"@types/nedb": "^1.8.8"
"@types/jest": "^24.0.23",
"@types/nedb": "^1.8.8",
"jest": "^24.9.0",
"lodash": "^4.17.15",
"prettier": "^1.19.1",
"ts-jest": "^24.1.0",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.7.2"
}
}
# Nedb-Async
**nedb-async is a simply promise base wrapper methods for <a href="https://github.com/louischatriot/nedb">Nedb</a>**
**nedb-async is a simply promise base wrapper methods for
[Nedb](https://github.com/louischatriot/nedb)**

@@ -19,3 +20,3 @@ ## Installation

`find, findOne and count`
methods has to be pass as the last argument in an array.
methods have to be passed as the last argument in an array.

@@ -56,5 +57,5 @@ ---

```js
const DB = require('nedb-async')
const { AsyncNedb } = require('nedb-async')
const data = new Nedb({
const data = new AsyncNedb({
filename: 'data.db',

@@ -67,6 +68,6 @@ autoload: true,

For typescript users conceder using this approach for better types support
For typescript users consider using this approach for better types support
```ts
import Nedb from 'nedb-async'
import AsyncNedb from 'nedb-async'

@@ -85,4 +86,32 @@ interface IUser {

## Development
After you've cloned this repo, there are some built-in commands to aid in development:
**Build the package** - outputs built files to `./dist/`. These are the ones that will ultimately end up in the pacakage.
```bash
npm run-script build
```
or
```bash
yarn build
```
**Linter** - runs standard lint checks to keep code clean.
```bash
npm run-script lint
```
or
```bash
yarn lint
```
**Formatter** - formats the code **in place** for consistency.
```bash
npm run-script format
```
or
```bash
yarn format
```
## Licence
MIT
example/index.js
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc