Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
handsome-box
Advanced tools
Readme
Lightweight data store for web application, and there are only 6 simple api methods for U.Please enjoy it
npm install --save handsome-box
import Store from 'handsome-box';
var t1 = new Store('t1');
var t2 = new Store('t2');
var obj = {};
t1.bind(window).setItem('name', {names: ['jack', 'lilith'], data: {age: 20, money: '10k'}}, {mode: 'sessionStorage', expire: -(Date.now() + 2000)}).setItem('money', 998);
t2.bind(obj).setItem('age', 20).setItem('aaa', 'aaa').removeItem('aaa');
console.log('t1.name', t1.getItem('name'));
console.log('t1.money', t1.getItem('money', true));
console.log('t2.age', t2.getItem('age'));
console.log(t1.list(), t2.list());
t2.clear();
console.log(t2.list());
console.log(obj);
bind handsome-box instance to your custom object
params: (obj: Object)
for saving data
params: (key: String, value: any, option: Object)
option example: {mode: "sessionStorage", expire: Date.now() + 3600}
mode optional value: "cookie"
| "sessionStorage"
| "localStorage"
expire shold be a timestamp
for getting data
params: (key: String, isDetail: Boolean)
for removing data
params: (key: String)
clear all saved data
list all key in one instance
indexDB and webSQL support
FAQs
Lightweight data store for web application, and there are only 6 simple api methods for U.Please enjoy it
The npm package handsome-box receives a total of 0 weekly downloads. As such, handsome-box popularity was classified as not popular.
We found that handsome-box 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.