# json-debby

> JSON Database (commented in French)

Latest version **1.3.2** (published 2019-05-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install json-debby
pnpm add json-debby
yarn add json-debby
bun add json-debby
```

## 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.3.2 |
| Published | 2019-05-09 |
| First published | 2019-04-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | ghom |
| Maintainers | ghom |
| Keywords | db, database, json, easy |

## Links

- npm: https://www.npmjs.com/package/json-debby
- Repository: https://github.com/CamilleAbella/Debby
- Homepage: https://github.com/CamilleAbella/Debby#readme
- Issues: https://github.com/CamilleAbella/Debby/issues
- npm.io page: https://npm.io/package/json-debby

## 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.3.2 (latest) — 2019-05-09
- 1.3.1 — 2019-04-29
- 1.3.0 — 2019-04-26
- 1.2.8 — 2019-04-25
- 1.2.7 — 2019-04-21
- 1.2.6 — 2019-04-21
- 0.1.5 — 2019-04-21
- 0.1.4 — 2019-04-21
- 0.1.3 — 2019-04-21
- 0.1.2 — 2019-04-21
- 0.1.1 — 2019-04-21
- 0.1.0 — 2019-04-21
- 0.0.10 — 2019-04-21
- 0.0.9 — 2019-04-21
- 0.0.8 — 2019-04-21
- … 3 more at https://npm.io/package/json-debby/versions

## README

# Debby - JSON Database

Easy-to-use JSON-based database for beginners

## Install

### included files

- Debby.js
- test.js
- test.json
- README.md
- package.json

```fix
npm install json-debby
```

## Initialize

Add as many files as you want to your database by entering their path as a parameter of the constructor. They will be managed by Debby automatically, depending on what you request from your database.

```js
const Debby = require("json-debby")
const debby = new Debby(
	"./save.json", // mandatory path
	"utf8" // optional encoding (default : utf8)
) 
```

## Properties

The **path** parameter represents a complete path.  
The **pathName** parameter represents a piece of path.  

- class **Debby**
	- content *alias : data, source, object & json*
	- *async* end()
	- *static* global_end()
	- *static* has( **pathName** )
	- *static* find( **pathName** )


## Examples

```js
const debby = new Debby("./save.json")

function example(){

	debby.json.fleurs = {}
	debby.json.fleurs.rose = "🌹"

	console.log(debby.json) /*=> {
		"fleurs" : {
			"rose" : "🌹"
		}
	}*/

	debby.end() // save the changes if there were any.
}

example()
```

# Thank for testing

I intend to improve this package as much as I could. Thank you for downloading!

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