🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

storage4ns

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storage4ns

Graceful storage solution with namespace.

1.0.0
latest
Source
npm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

storage4ns.js

Graceful storage solution with namespace.

GitHub stars GitHub license Rate on Openbase

NPM

简体中文 文档

Installation

npm install storage4ns --save

or

yarn add storage4ns

DEMO

import NStorage from "storage4ns";

const nstorage = new NStorage("sys-admin");

// Put storage item
nstorage.put("access-token", "token-secret");

// Get storage item
let userName = nstorage.get("user-name");
console.log(userName);

// Remove storage item
nstorage.remove("user-name");

// Clears storage
nstorage.clear();

Keywords

storage

FAQs

Package last updated on 31 Oct 2021

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