Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
dirty-store
Advanced tools
A quick and dirty, nestable store that converts well to a native JS object.
A quick and dirty, nestable store that converts well to a native JS object. Won't store objects.
npm install dirty-store
var store = require('./');
var person = Object.create(store).init({ name: 'tom' });
person.set('name', 'dave');
person.set({
age: 24,
skill: 'javascript'
});
person.inc('age');
person.add('computer').set('model', 'macbook');
person.for('computer').set('color', 'silver');
var dog = person.for('dog').set({
name: 'rufus',
breed: 'daschund',
age: 10
});
dog.dec('age');
var personObj = person.toObject();
console.log(require('util').inspect(personObj, { depth: null, colors: true }));
Set the store up with an initial state.
Chainable.
Set the value at a particular key.
Chainable.
Set via an object.
Chainable.
Get value at key
Increment value at key
Chainable.
Decrement value at key
Chainable.
Add nested store at key
Chainable (returns new store).
Add and/or retrieve nested store at key.
Return simple JS object with stored data
With npm:
$ npm test
MIT
FAQs
A quick and dirty, nestable store that converts well to a native JS object.
The npm package dirty-store receives a total of 4 weekly downloads. As such, dirty-store popularity was classified as not popular.
We found that dirty-store 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.