🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

json-debby

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-debby

JSON Database (commented in French)

1.3.2
latest
Source
npm
Version published
Weekly downloads
21
-63.16%
Maintainers
1
Weekly downloads
 
Created
Source

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!

Keywords

db

FAQs

Package last updated on 09 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts