
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
preact-localstorage
Advanced tools
Easy use localstorage in Preact. It also supports SSR (Prerender).
npm install preact-localstorage
or
yarn add preact-localstorage
import preactLocalStorage from 'preact-localstorage';
preactLocalStorage.set('var', true);
preactLocalStorage.get('var', true);
preactLocalStorage.setObject('var', {'test': 'test'});
preactLocalStorage.getObject('var');
preactLocalStorage.remove('var');
preactLocalStorage.clear();
Default VALUE is required while getting values (because SSR doesn't have real localStorage)
preactLocalStorage.set(key, value)
preactLocalStorage.get(key, deafultValue, silent=true)
preactLocalStorage.setObject(key, object)
preactLocalStorage.getObject(key, defaultValue, silent=true)
preactLocalStorage.remove(key)
preactLocalStorage.clear()
silent:
true
: Will not throw exception instead will return defaultValuefalse
: Will throw exceptionMIT
FAQs
Easy use localstorage in Preact
The npm package preact-localstorage receives a total of 10 weekly downloads. As such, preact-localstorage popularity was classified as not popular.
We found that preact-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
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.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.