Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

store

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

store

A localStorage wrapper for all browsers without using cookies or flash. Uses localStorage, globalStorage, and userData behavior under the hood

  • 2.0.12
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
255K
increased by5.29%
Maintainers
1
Weekly downloads
 
Created

What is store?

The 'store' npm package is a simple and lightweight library for managing key-value pairs in the browser's local storage. It provides an easy-to-use API for setting, getting, and removing data from local storage, making it useful for persisting user preferences, session data, and other client-side information.

What are store's main functionalities?

Set a value

This feature allows you to store a key-value pair in the local storage. The 'set' method takes two arguments: the key and the value you want to store.

store.set('key', 'value');

Get a value

This feature allows you to retrieve a value from the local storage using its key. The 'get' method takes one argument: the key of the value you want to retrieve.

store.get('key');

Remove a value

This feature allows you to remove a key-value pair from the local storage. The 'remove' method takes one argument: the key of the value you want to remove.

store.remove('key');

Clear all values

This feature allows you to clear all key-value pairs from the local storage. The 'clear' method does not take any arguments.

store.clear();

Other packages similar to store

FAQs

Package last updated on 20 Jun 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc