# cleverdb

> cleverdb is here to provide an easy way for beginners and people of all levels to access & store data in a low to medium volume environment

Latest version **1.0.3** (published 2021-08-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install cleverdb
pnpm add cleverdb
yarn add cleverdb
bun add cleverdb
```

## 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-08-28 |
| First published | 2021-08-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 23.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Fire |
| Maintainers | fireeeee |

## Links

- npm: https://www.npmjs.com/package/cleverdb
- npm.io page: https://npm.io/package/cleverdb

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [better-sqlite3](https://npm.io/package/better-sqlite3.md) ^7.4.3

## Recent versions

- 1.0.3 (latest) — 2021-08-28
- 1.0.2 — 2021-08-28

## README

<p align="center"><a href="https://nodei.co/npm/superchatbot/"><img src="https://nodei.co/npm/cleverdb.png"></a></p>
<p align="center"><img src="https://img.shields.io/npm/v/cleverdb?style=for-the-badge"> <img src="https://img.shields.io/npm/dt/cleverdb?style=for-the-badge">

# Cleverdb
## cleverdb is here to provide an easy way for beginners and people of all levels to access & store data in a low to medium volume environment

#
### 📂 [NPM](https://www.npmjs.com/package/cleverdb)
#

# Example

### Javascript
```js
const db = require('cleverdb');

// Setting an object in the database:
db.set('userInfo', { difficulty: 'Easy' })
// -> { difficulty: 'Easy' }

// Pushing an element to an array (that doesn't exist yet) in an object:
db.push('userInfo.items', 'Sword')
// -> { difficulty: 'Easy', items: ['Sword'] }

// Adding to a number (that doesn't exist yet) in an object:
db.add('userInfo.balance', 500)
// -> { difficulty: 'Easy', items: ['Sword'], balance: 500 }

// Repeating previous examples:
db.push('userInfo.items', 'Watch')
// -> { difficulty: 'Easy', items: ['Sword', 'Watch'], balance: 500 }
db.add('userInfo.balance', 500)
// -> { difficulty: 'Easy', items: ['Sword', 'Watch'], balance: 1000 }

// Fetching individual properties
db.get('userInfo.balance') // -> 1000
db.get('userInfo.items') // ['Sword', 'Watch']
```

# Installation
Windows and Linux
  - `npm i cleverdb`

# :D
Feel Free to Use this and you could make your own Db with my Code , and i would not say any thing :)

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