
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.
storage-time
Advanced tools
一款带时间存储的JavaScript本地存储插件
a local storage plugin with time for JavaScript
github:https://github.com/Yicoding/storage-time
import StoreBase from 'storage-time';
// create userInfo
const userInfoStore = new StoreBase({
key: 'USER_INFO',
lifeTime: '30D' // D: day, eg: 0.5D
});
// save userInfo
userInfoStore.set({
name: 'Ecode',
password: 123,
mobile: 1000000000
});
// read userInfo
console.log('USER_INFO', userInfoStore.get());
/*
{
saveDate: "2019-12-18 15:06:22",
validDate: "2020-01-17 15:06:22",
value: {
name: "Ecode",
password: 123,
mobile: 1000000000
}
}
*/
// merge field
userInfoStore.merge({
name: 'Yicoding',
age: 20
});
/*
{
saveDate: "2019-12-18 15:06:22",
validDate: "2020-01-17 15:06:22",
value: {
name: "Yicoding",
password: 123,
mobile: 1000000000,
age: 20
}
}
*/
// edit single field
userInfoStore.setAttr('password', 456);
/*
{
saveDate: "2019-12-18 15:06:22",
validDate: "2020-01-17 15:06:22",
value: {
name: "Yicoding",
password: 456,
mobile: 1000000000,
age: 20
}
}
*/
// remove userInfo
userInfoStore.remove();
// judge isEpmty
userInfoStore.isEmpty()
FAQs
a local time storage plugin for js
We found that storage-time 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.