# useful.db

> useful.db is JSON database you can use it in your project and make your server easy!

Latest version **1.0.3** (published 2021-05-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install useful.db
pnpm add useful.db
yarn add useful.db
bun add useful.db
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-05-29 |
| First published | 2021-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 18.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Mohamed Ashraf |
| Maintainers | dagermohamed |
| Keywords | useful.db, db, database, database json, database JSON, json, JSON |

## Links

- npm: https://www.npmjs.com/package/useful.db
- Repository: https://github.com/dager-mohamed/useful.db
- Homepage: https://github.com/dager-mohamed/useful.db#readme
- Issues: https://github.com/dager-mohamed/useful.db/issues
- npm.io page: https://npm.io/package/useful.db

## Dependencies (1)

- [jsdoc](https://npm.io/package/jsdoc.md) ^3.6.7

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.3 (latest) — 2021-05-29
- 1.0.2 — 2021-05-28

## README

# what is main language of useful.db?
**the main language of useful.db is Typescript**
# installation
```
npm install useful.db
```
# Typescript
```ts
import { Main } from 'useful.db'

const db = new Main("./example.json")
```
# Javascript
```js
const { Main } = require("useful.db")

const db = new Main("./example.json")
```

# examples

```js
db.set("example")  /* make a new data */ 
/* --> {"example", "example"} */

db.has("example")
/* --> return true or false */

 db.delete("example")
/* --> delete the data */

db.get("example")
/* --> return data */

db.push("key", ["data"]) /* make a new array data */
/* --> {"key":["data"]} */

db.getAll()
/* return you all data in file */

db.math(5, "+", 5)
/* --> 10 */
db.math(10, "/", 5)
/* --> 2 */
db.math(5, "*", 5)
/* --> 25 */
db.math(10, "-", "5")
/* --> 5 */
```
# My bot discord server

https://discord.gg/qVukYFzkkH

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