
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
redux-persistence-engine-localstorage
Advanced tools
npm install --save redux-persistence-engine-localstorage
Stores everything inside window.localStorage
.
import createEngine from 'redux-persistence-engine-localstorage'
const engine = createEngine('my-save-key')
You can customize the saving and loading process by providing a replacer
and/or a reviver
.
import createEngine from 'redux-storage-engine-localstorage';
function replacer (key, value) {
if (typeof value === 'string') {
return 'foo';
}
return value;
}
function reviver (key, value) {
if (key === 'foo') {
return 'bar';
}
return value;
});
const engine = createEngine('my-save-key', replacer, reviver);
Warning: localStorage
does not expose a async API and every save/load
operation will block the JS thread!
Warning: This library only works on browsers that support Promises (IE11 or better)
Warning: If the browser doest not support LocalStorage, that should be handled before passing the engine to redux-persistence
(see test)
FAQs
LocalStorage engine for redux-persistence
The npm package redux-persistence-engine-localstorage receives a total of 0 weekly downloads. As such, redux-persistence-engine-localstorage popularity was classified as not popular.
We found that redux-persistence-engine-localstorage 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.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.