@analytics/global-storage-utils

0.1.7 • Public • Published

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')

Package Sidebar

Install

npm i @analytics/global-storage-utils

Weekly Downloads

161,045

Version

0.1.7

License

MIT

Unpacked Size

60.1 kB

Total Files

21

Last publish

Collaborators

  • davidwells