
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
terribly simplistic kv store for local fs
creates a namespace (object) that will be written to disc (and read from disc upon start).
const nfdb = require('nfdb').nfdb;
var myLocalJsonFileStore = nfdb(
'engagedUserList', // name of the db
process.cwd() + '/data/engagedUserList.ndfb.json', // file to save the data in
{
saveOnWrite: false, // save data on every data change (this is slow as it's sync and uses JSON.stringify)
saveInterval: 30000 // (additionally) save every X milliseconds ..
}
);
myLocalJsonFileStore.set(
'usernames',
[
'user1',
'user2'
]
);
var un = myLocalJsonFileStore.get(
'usernames'
);
´´´´
## persists
persists will monitor changes to an object/array and persists that single object to disc
const persists = require('nfdb').persists;
var pArray1 = persists( 'Array', // works for Array and Object .. fallback is an Object 'pArray1', // name ... currently only used for events './pArray1.persist.json', // filepath for saving { //options .. saveOnChange: true, // each change is written to disc saveInterval: null, // a write to disc interval in ms loadOnInit: true, // load 'old' data from the filepath (if it exists) events: null, // if an event-emitter is given, any change will trigger a name + '_change' event and a discwrite a name +'_fswrite' event } );
// NOTE ... re-initializing the persists object will lose all 'watch' effects.
´´´´
FAQs
terribly simplistic kv store for local fs
The npm package nfdb receives a total of 0 weekly downloads. As such, nfdb popularity was classified as not popular.
We found that nfdb 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.