Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Javascript configuration library to handle an application's configuration. Stores config to localstorage.
Configry is a config manager library for Javascript. It uses localStorage to store persistent configurations in the browser. Use it woth your favorite tool like browserify or get a precompiled bundle from bower.
$ npm install --save configry
or
Download source from build/Configry.js
and include Configry.js
in your html
<script src="Configry.js"></script>
Create a config object. The constructor takes two parameters :
var config= new Configry({sound:true,autoPlay:false,volume:60},['volume']);
//volume property will persist even after refreshes using localstorage.
//Set additional configuration options
config.set("shuffle",true,true);
.set takes three parameters:
var shuffleState = config.get('shuffle');
//Will get the value of the config option.
Since Configry stores the persistent config information in localstorage, you cannot clear localstorage using localStorage.clear any more. Instead use config.clearLS()
function to clear the localStorage. It will clear localstorage, and write the persistent config keys back into localStorage.
#Licence
Licenced under MIT Licence. Feel free to fork/use.
Configry is build for SDSLabs Muzi, a music player application for the IIT-Roorkee Campus.
FAQs
Javascript configuration library to handle an application's configuration. Stores config to localstorage.
We found that configry 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.