Socket
Socket
Sign inDemoInstall

@availity/localstorage-core

Package Overview
Dependencies
Maintainers
13
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@availity/localstorage-core

Wraps localStorage with utility functions


Version published
Weekly downloads
74
decreased by-59.34%
Maintainers
13
Weekly downloads
 
Created
Source

localstorage-core

Wraps localStorage with utility functions

Version

Install

npm install @availity/localstorage-core --save

Usage

import * as avLocalStorage from '@availity/localstorage-core';

avLocalStorage.set('myKey', 'myValue');
console.log(avLocalStorage.get('myKey')); // logs: "myValue"

Methods

get(key)

Returns value stored at key, will attempt to parse JSON stored there.

set(key, value)

Sets key to value in localStorage. Will stringify objects if needed.

remove(key)

Removes key from localStorage.

getKeys(searchKey)

Returns array of all keys that match the searchKey string or RegExp.

removeKeys(searchKey)

Remove all keys that match the searchKey string or RegExp.

getSessionBust()

Returns session key set by Availity on login.

Keywords

FAQs

Package last updated on 12 Dec 2019

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