
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
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 for creating and manipulating JSON array, i.e create table, insert row, update row, select row and delete row. useful for small data like storing settings on servers
npm i crud-json-array
var DB = require("crud-json-array");
var curDB = new DB.CRUD();
curDB.create_database("test");
curDB.create_table("fTable",["name", "age", "sex"]);
Each instance of this module produces only one table i.e table_name.json
//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"]);
{
"array" : [
["Name", "Age", "Sex" ] //first row i.e 0 index is name of column
,["Raju", 18, "Male"]
,["Mangala", 34, "Female"]
]
}
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 ways 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 method, avoid from file method
curDb.get_table_full_path_name();
curDB.write_full_table_in_bulk(curTable)// curtable is array conataing
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 12 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.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.