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.
element-data-store
Advanced tools
Simple library that provides an api to stores data for an element (similar to $.data in jQuery)
#element-data-store
element-data-store is a simple library that provides an api to stores data for an element (similar to $.data in jQuery)
##Add element-data-store to your project
There are multiple ways to add element-data-store to your project.
npm install element-data-store
##Usage
###Add data to an element
To add data to an element use the set
method, passing the element, a key and the value you want to store.
elementDataStore.set(element, key, value);
###Fetch data for an element
To get data to an element use the get
method, passing the element. The key is an optional parameter, passing it will get the value for the key, not passing the parameter will result in being returned all the data stored on the element.
elementDataStore.get(element, [key]);
###Remove data from an element
To remove data from an element use the remove
method, passing the element. The key is an optional parameter, passing it will remove the value for the key, not passing the parameter will result in the removal of all data stored for the element.
elementDataStore.remove('element', [key])
##Licence
License: MIT (http://www.opensource.org/licenses/mit-license.php) Copyright Jonathan Fielding 2015
FAQs
Simple library that provides an api to stores data for an element (similar to $.data in jQuery)
The npm package element-data-store receives a total of 6 weekly downloads. As such, element-data-store popularity was classified as not popular.
We found that element-data-store 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.