Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ This give you this results :
// If you do this:
await db.push("/test2/my/test/", 10, false);

// The data will be overriden
// The data will be overridden

// Get the data from the root
var data = await db.getData("/");
Expand Down Expand Up @@ -150,7 +150,7 @@ await db.delete("/test1");
// Save the data (useful if you disable the saveOnPush)
await db.save();

// In case you have an exterior change to the databse file and want to reload it
// In case you have an exterior change to the database file and want to reload it
// use this method
await db.reload();
```
Expand Down Expand Up @@ -367,7 +367,7 @@ const itemPath = db.fromPath("/myarray/3/children/1");
import { JsonDB, Config } from "node-json-db";
import { generateKeySync, randomBytes } from "crypto";

// First instanciate Config class
// First instantiate Config class
const config = new Config("myDataBase", true, false, "/");

// create or retrieve binary cipher key of minimum 32 bytes
Expand All @@ -386,7 +386,7 @@ const key = randomBytes(32);
// myDataBase.json becomes myDataBase.enc.json
config.setEncryption(key);

// instanciate database
// instantiate database
const db = new JsonDB(config);

// use your database as you would normally do
Expand Down