# @suni29/jsdb

> JSDB made by Suni29

Latest version **1.0.3** (published 2021-11-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install @suni29/jsdb
pnpm add @suni29/jsdb
yarn add @suni29/jsdb
bun add @suni29/jsdb
```

## 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.3 |
| Published | 2021-11-06 |
| First published | 2021-11-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Suni29 |
| Maintainers | suni29 |
| Keywords | database, db, jsdb |

## Links

- npm: https://www.npmjs.com/package/@suni29/jsdb
- Repository: https://github.com/Suni29/jsdb
- Homepage: https://github.com/Suni29/jsdb#readme
- Issues: https://github.com/Suni29/jsdb/issues
- npm.io page: https://npm.io/package/@suni29/jsdb

## Dependencies (2)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [colors](https://npm.io/package/colors.md) ^1.4.0

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2021-11-06
- 1.0.2 — 2021-11-06
- 1.0.1 — 2021-11-06
- 1.0.0 — 2021-11-06

## README

## What is JSDB?
JSDB is a Databse module for NodeJS made by Suni29, its easy to use & has a lot of features.

## How to use JSDB?
Here is some code examples how to use it.
```js
const Database = require('@suni29/jsdb')
const db = new Database('./db.json');

db.set('key', 'value')
db.get('key') // 'value'

db.add('counter', 10)
db.get('counter') // 10

db.substract('counter', 7)
db.get('counter') // 3

db.delete('counter')
db.get('counter') // undefined

db.has('key') // true

db.list() // Returns a stringified JSON text, ex.: "{"key":"value"}"
```

## Options
There is not much options currently but in the future I will add more.
```js
const Database = require('@suni29/jsdb')
const db = new Database('./db.json', {
  debug: true / false // Turns on or off the debug log in the console.
});
```

## Installation
The installation process is very easy, just one command.
```bash
$ npm i @suni29/jsdb
```

## Contact
You can contact me on Discord, Suni29#3946 or join [Bitty's Support](https://dc.bittybot.cf) server to DM me.

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