# wrld-database-json

> An easy to use tool to manage your data with json

Latest version **1.0.0** (published 2023-03-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install wrld-database-json
pnpm add wrld-database-json
yarn add wrld-database-json
bun add wrld-database-json
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-03-24 |
| First published | 2023-03-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | 999.frost |
| Keywords | json, db, json-db, database |

## Links

- npm: https://www.npmjs.com/package/wrld-database-json
- Repository: https://github.com/999Frost/wrld-database-json
- Homepage: https://github.com/999Frost/wrld-database-json#readme
- Issues: https://github.com/999Frost/wrld-database-json/issues
- npm.io page: https://npm.io/package/wrld-database-json

## Dependencies (1)

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

## 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.0 (latest) — 2023-03-24

## README

<p align="center"><a href="https://nodei.co/npm/wrld-database-json/"><img src="https://nodei.co/npm/wrld-database-json.png"></a></p>

## ⚙️・Installation
To install the package, run this on your terminal :
```
npm i wrld-database-json@latest
```
or this 
```
yarn add wrld-database-json
```

## 🏹・Example

Here's an example of how to use this package easily.

```js
const Database = require("wrld-database-json");
const db = new Database("./users.json");

// Set data in the database ( ./users.json )
db.set("Users", "Frost");

// Get data in the database ( ./users.json )
db.get("Users"); // return : Frost

// Delete data in the database
db.delete("Users");

db.get("Users"); // return : undefined
db.has("Users"); // return : false

// Set data in the database ( ./users.json )
db.set("money", 10);
// add data ( number ) in the database ( ./users.json )
db.add("money", 1); // return : 11
// subtract data ( number ) in the database ( ./users.json )
db.subtract("age", 10); // return : 1

// Set data in the database ( ./users.json )
db.set("fruits", [ "orange" ]);
db.push("fruits", "banana"); // return : [ "orange", "banana" ]

// Delete all the data from all the database
db.deleteAll();

// Get all the data from all the database
db.getAll();
```

## Support
If you need help, contact me on discord [here](https://discord.com/users/548028946097111045)
or on github [here](https://github.com/999Frost/wrld-database-json/issues/new)

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