
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
A simple localstorage api with uses ES6 classes. This library saves data from localstorage in local variable and syncs this variable with localstorage. When you try to get data, library doesn't read localstorage it just returns data from local variable.
npm i es6-store --save
Just import Store from Store.js if you use ES6
import Store from 'node_module/es6-store/src/Store.js'
Just require es6-store if you use browserify
var Store = require(es6-store);
Create instance of Store
var store = new Store('NameOfYourStore')
store.setstore.getstore.getAllstore.removestore.clearstore.destructorStore.serializeStore.deserializeStore.clonestore.setPersists value under key in local storage.
Key will be removed if value is undefined.
You can use multi key!
key isn't string or set failed.value or remote valuestore.set('foo', 'bar');
-> 'bar'
store.set('bar.baz', 'bar');
-> 'bar'
store.getAll();
->
{
foo: 'bar',
bar: {
baz: 'bar'
}
}
store.getReturn value under key in local storage.
Will be return defaultValue if key is not defined.
You can use multi key!
key isn't string or set failed.value under key or defaultValue.store.get('foo');
-> 'bar'
store.get('bar.baz');
-> 'bar'
store.get('baz', 'bar'); // baz is not defined
-> 'bar'
store.getAllReturn local storage object.
store.getAll();
->
{
foo: 'bar',
bar: {
baz: 'bar'
}
}
store.removeRemoves key from local storage.
You can use multi key!
key isn't string or remove failed.undefined if key is not defined.value of removed key.store.remove('foo');
-> 'bar'
store.remove('bar.baz');
-> 'bar'
store.get('baz', 'bar'); // baz is not defined
-> undefined
store.clearClear local storage object.
undefined.store.destroyRemove event listener.
If first argument is true, local storage item will be removed
undefined.Store.serializeStatic method. Convert from JSON to string.
Store.deserializeStatic method. Convert from string to JSON.
Store.cloneStatic method. Clone object. Use JSON.stringify and JSON.parse.
FAQs
es6 local storage library
The npm package es6-store receives a total of 1 weekly downloads. As such, es6-store popularity was classified as not popular.
We found that es6-store 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.