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.
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 is a simple library that provides an api to stores data for an element (similar to $.data in jQuery)
There are multiple ways to add element-data-store to your project.
npm install element-data-store
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);
###F etch 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]);
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])
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)
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.
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.