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

@analytics/global-storage-utils

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@analytics/global-storage-utils

Tiny global storage utility library

  • 0.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
61K
decreased by-55.68%
Maintainers
1
Weekly downloads
 
Created
Source

Global Storage Utility

A tiny window storage util library in 406 bytes.

This will work with analytics or as a standalone import in your code.

See live demo.

How to install

Install @analytics/global-storage-utils from npm.

npm install @analytics/global-storage-utils

API

Below is the api for @analytics/global-storage-utils. These utilities are tree-shakable.

import { get, set, remove } from '@analytics/global-storage-utils'

/* Set value */
set('key', 'value')

/* Get value */
const val = get('key')
console.log(val) // 'value'

/* Remove value */
remove('key')

Keywords

FAQs

Package last updated on 27 May 2023

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