Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.
The npm package configry receives a total of 0 weekly downloads. As such, configry popularity was classified as not popular.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.