Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
crud-json-array
Advanced tools
This module is creating manipulating JSON array. That is create table, insert, update, select and delete. useful for small data
This module is creating manipulating JSON array. create table, insert, update, select and delete. useful for small data
npm i crud-json-array
This is storing small amount of data in columan and row format. for exmple storing settings,
{
"array" : [
["Name", "Age", "Sex" ] //first row i.e 0 index is name of column
,["Raju", 18, "Male"]
,["Mangala", 34, "Female"]
]
}
var DB = require("crud-json-array");
var curDB = new DB.CRUD();
curDB.create_database("test");
curDB.create_table("fTable",["name", "age", "sex"]);
//below exmple shows way to create three table in side folder data
var DB = require("crud-json-array");
var curTable_1 = new DB.CRUD("data");
curTable_1.create_table("fTable",["name", "age", "sex"]);
var curTable_2 = new DB.CRUD("data");
curTable_2.create_table("fTable",["paper1", "paper2", "paper3"]);
var curTable_3 = new DB.CRUD("data);
curTable_3.create_table("fTable",["taet1", "test2", "test3"]);
curDB.insert_one_row(["Rithik", 47, "male"]);
curDB.insert_one_row(["Varun", 27, "male"]);
var index = curDB.find_one_row([0,"Rithik"]);//0 is for column index
console.log(index);
curDB.update_one_row(["Raman", 18, "Male"], [0, "Rithik"]); //0 is for column index
curDB.delete_one_row([0, "Umesh"]);
Two way to read
1. from file `var tableFile = curDB.read_table_from_file();`
2. from memory `var tableMemory = curDB.read_table_in_memory()`
use in Momery as avoid from file method
curDb.get_table_full_path_name();
FAQs
This module is creating manipulating JSON array. That is create table, insert, update, select and delete. useful for small data
The npm package crud-json-array receives a total of 0 weekly downloads. As such, crud-json-array popularity was classified as not popular.
We found that crud-json-array demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.