
Security News
/Company News
Socket Is Sponsoring Composer and Packagist
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.
fs-key-value
Advanced tools
This module provides a simple key value data store using only the file system. It makes use of file locking to allow safe operation in a multiple process environment without the overhead of a separate database server.
$ npm install fs-key-value
var FsKeyValue = new require('fs-key-value')
var db = new FsKeyValue('./mydb')
var cluster = require('cluster')
if (cluster.isMaster) {
for (var i = 0; i < 8; i++) {
cluster.fork()
}
} else {
var id = cluster.worker.id % 2
db.put('hoopla' + id, {'msg': 'ballyhoo ' + cluster.worker.id})
var data = db.get('hoopla' + id)
if (data != undefined) {
console.log(data.msg)
}
db.del('hoopla' + id)
cluster.worker.kill()
}
FAQs
Key value data store using the filesystem
The npm package fs-key-value receives a total of 7 weekly downloads. As such, fs-key-value popularity was classified as not popular.
We found that fs-key-value demonstrated a healthy version release cadence and project activity because the last version was released less than 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
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.

Research
/Security News
Benign-looking npm packages split malicious functionality across a dependency chain that deploys a cross-platform RAT targeting Alibaba developers.

Research
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.