
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.
time-state
Advanced tools
Store and fetch historical values of a state (Flow friendly!)
$ npm install time-state
First import time-state
const TS = require('time-state');
Then create a factory (see FactoryOptions)
const factory = TS.factory({/* options */});
Each factory requires a StorageProvider. time-state provides three options:
time-state will create a timestate and block collection
const storage = await TS.Storage.mongo('mongodb://localhost:27017/testdb');
// OR provide collection names
const storage = await TS.Storage.mongo('mongodb://localhost:27017/testdb', 'timestates', 'blocks');
time-state will store everything in memory
const storage = TS.Storage.memory();
// Save and load storage.provider.timeStates for persistence
Feel free to implement StorageProvider. See storage/mongo.js and storage/memory.js.
FAQs
A node package for keeping track of some state across time
We found that time-state 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.