1.3.2 • Published 5 years ago

json-debby v1.3.2

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

Debby - JSON Database

Easy-to-use JSON-based database for beginners

Install

included files

  • Debby.js
  • test.js
  • test.json
  • README.md
  • package.json
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.

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

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!

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago