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.
Configurator is a config manager library for Javascript. It uses localStorage to store persistent configurations in the browser.
##Setup
Include configurator.js in your html
<script src="configurator.js"></script>
Now, create a config object. The function takes two parameters :
var config= Configurator({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.
###Localstorage clearing
Since configurator 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.
Configurator is extracted from 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.