From a4aefe1ddb7e2435403594398e1e80072aef5658 Mon Sep 17 00:00:00 2001 From: Vaibhav Srivastava Date: Mon, 24 Aug 2026 13:52:44 +0530 Subject: [PATCH] docs: fix four typos in README code comments overriden -> overridden, databse -> database, instanciate -> instantiate (x2) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 19c1a163..173a6b61 100644 --- a/README.md +++ b/README.md @@ -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("/"); @@ -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(); ``` @@ -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 @@ -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