Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@analytics/global-storage-utils

DavidWells451.3kMIT0.1.7

Tiny global storage utility library

analytics, analytics-project, analytics-util, global-storage, window-storage, storage

readme

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

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.1.7 (2023-05-27)

Note: Version bump only for package @analytics/global-storage-utils

0.1.6 (2023-05-27)

Note: Version bump only for package @analytics/global-storage-utils

0.1.5 (2022-03-18)

Note: Version bump only for package @analytics/global-storage-utils

0.1.4 (2022-02-05)

Note: Version bump only for package @analytics/global-storage-utils

0.1.3 (2021-12-12)

Note: Version bump only for package @analytics/global-storage-utils

0.1.2 (2021-07-28)

Note: Version bump only for package @analytics/global-storage-utils

0.1.1 (2021-07-20)

Note: Version bump only for package @analytics/global-storage-utils

0.1.0 (2021-07-19)

Features

  • add @analytics/global-storage-utils pkg (565b8e3)