New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

perm-storage

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

perm-storage

A Simple wrapper for permanent local storage

latest
Source
npmnpm
Version
1.0.9
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

perm-storage

A Temp storage pattern for Javascript

Installation

npm install perm-storage --save

Usage

Initialisation

// ES 5

var permStorage = require("perm-storage");

// or ES 6

import permStorage from "perm-storage";

Set an Item to storage

permStorage.set("id", "A Value in String");

Get an Item from storage

permStorage.get("id");

Set an Object to storage

permStorage.setObj("id", { id: 1, name: "Sumanta Sarkar" });

Get an Object from storage

permStorage.getObj("id");

Delete an item from storage

permStorage.delete("id");

Delete an Object from storage

permStorage.deleteObj("id");

Keywords

JS

FAQs

Package last updated on 14 Jun 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