New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

storage-manager-ts

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storage-manager-ts

A storage manager that supports storage managing with local and Redis storages

  • 1.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by116.67%
Maintainers
1
Weekly downloads
 
Created
Source

Storage Manager · GitHub license npm version CI

About

A project that contains utilities for local storage & general storage purposes

Quick start

Initialize your local storage manager:

import { LocalStorage } from 'storage-manager-ts';
const storage = new LocalStorage();
const value = storage.get('key');

Local storage functions list

FunctionDescription
getReturning the value of a key
setSetting the value of a key
deleteDeleting a key
getKeysReturning all the keys
convertKeyListToJSONBuilding a JSON of the key + value

Helper functions list

FunctionDescription
filterKeysReturning if the keys match with a regex, * will indicate that an a key starts with the regex after the *
filterKeyReturning if a key match with a regex, * will indicate that an a key starts with the regex after the *

Keywords

FAQs

Package last updated on 14 Sep 2020

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