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

@availity/localstorage-core

Package Overview
Dependencies
Maintainers
5
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

  • 1.0.0-alpha.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-79.37%
Maintainers
5
Weekly downloads
 
Created
Source

localstorage-core

Wraps localStorage with utility functions

Install

npm install @availity/localstorage-core --save

Usage

import AvLocalStorarge from '@availity/localstorage-core`;

const avLocalStorage = new AvLocalStorage();

if(avLocalStorage.supportsLocalStorage()) {
    consolog.log('Browser support localstorage');
}

Methods

supportsLocalStorage

Returns boolean result of check if localStorage is supported.

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 20 Dec 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