# lowdb-adapter

> Connect node.js lowdb in one string

Latest version **0.1.3** (published 2018-02-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install lowdb-adapter
pnpm add lowdb-adapter
yarn add lowdb-adapter
bun add lowdb-adapter
```

## 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.1.3 |
| Published | 2018-02-27 |
| First published | 2017-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | handofbug@gmail.com |
| Maintainers | handofbug |
| Keywords | lowdb |

## Links

- npm: https://www.npmjs.com/package/lowdb-adapter
- Repository: https://github.com/handofbug/lowdb-adapter
- Homepage: https://github.com/handofbug/lowdb-adapter#readme
- Issues: https://github.com/handofbug/lowdb-adapter/issues
- npm.io page: https://npm.io/package/lowdb-adapter

## Dependencies (2)

- [lowdb](https://npm.io/package/lowdb.md) ^1.0.0
- [crypto](https://npm.io/package/crypto.md) ^1.0.1

## Recent versions

- 0.1.3 (latest) — 2018-02-27
- 0.1.2 — 2017-11-02
- 0.1.1 — 2017-11-02
- 0.1.0 — 2017-11-02

## README

# lowdb-adapter  [![NPM version](https://badge.fury.io/js/lowdb-adapter.svg)](http://badge.fury.io/js/lowdb-adapter)

> Makes it easy to connect [lowdb](https://github.com/typicode/lowdb) in one string

## Install

```bash
# Just use it
npm install lowdb-adapter --save
```
## API
#### (fileName = 'db.json', adapterName = 'FileSync', options = {})
```js
let db = require('lowdb-adapter')();
db.get('posts').push({id: 2).write();
```
#### filename
Default 'db.json'.

#### adapterName
Default 'FileSync'. Can be:

1. FileSync
2. FileAsync
3. Memory

#### options
Default {encrypt : true, pass: 42}
Used [crypto](https://nodejs.org/api/crypto.html)

## License

MIT

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