
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
Not actually a DB: But read/write JSON objects to/from a flat file using this if you want.
This is a component I extracted from a test REST server used if you're working on a front end app that RESTfully stores data and you want to click around for a little bit without firing up an actual backend.
npm install whoadb
WhoaDB = require 'whoadb'
persistFile = '/tmp/whoadb.json'
db = new WhoaDB(persistFile)
record1 = { id: 'fff', name: "food", _collection: "edibles" }
record2 = { id: 'ggg', name: "more food", _collection: "edibles" }
db.save(record1)
db.save(record2)
db.all('edibles')
# => [ record1, record2 ]
db.find('edibles', 'fff')
# => record1
record = { name: "food", _collection: "edibles" }
db.save(record)
# record object is assigned an id
record.name = "non-food"
db.save(record)
# record updated
db.destroy(record)
_collection keyIf a record doesn't have a _collection key, it'll be added to the
undefined collection.
record1 = { id: 'fff', name: "food" }
db.save(record1)
db.all(undefined)
# => [ record1 ]
db.find(undefined, 'fff')
# => record1
FAQs
Store and read JSON objects in a flat file if you want!
We found that whoadb 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.