
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
json-simplified
Advanced tools
Simple JSON Database
Created By: OneAndonlyFinbar
Discord: Finbar#0001
Email: finbar@finbar.xyz
Documentation: https://jsonsimplified.finbar.xyz/
const { Database } = require('json-simplified');
const db = new Database('versionsDatabase');
db.set('version', '1.0');
db.get('version') // 1.0
const db = new Database('DatabaseName', {DatabaseOptions});
db.set('Field/Path', 'Data');
db.get('Field/Path'); // Data
// Using Field Names
db.set('latestVersion', '1');
db.get('latestVersion'); // 1
// Using JSON Paths
db.set('versions.latest', '1');
db.get('versions.latest'); // 1
// Delete data using field name
db.delete('latestVersion');
// Delete Data Using JSON Path
db.delete('versions.latest');
// Destroy database
db.destroy();
db.set('Finbar', {name: 'Finbar', gender: 'male', occupation: 'freelance programmer'});
db.get('users', 'Finbar'); // {name: 'Finbar', gender: 'male', occupation: 'freelance programmer'}
db.set('Finbar.name', 'Finbar');
db.set('Finbar.gender', 'Male');
db.set('Finbar.occupation', 'freelance programmer');
db.get('Finbar'); // {name: 'Finbar', gender: 'male', occupation: 'freelance programmer'}
db.get('users', 'Finbar.name'); // Finbar
Option | Type | Description |
---|---|---|
overwriteOld | boolean | Create a new database file, whether or not one exists. |
registry | string | Registry/directory for the database files to be placed in. |
FAQs
Basic json database.
The npm package json-simplified receives a total of 0 weekly downloads. As such, json-simplified popularity was classified as not popular.
We found that json-simplified 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.