🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

chrome_extension_storage

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chrome_extension_storage

A simple encapsulation for manipulating the storage API when develops a Chrome extension.

latest
Source
npmnpm
Version
0.9.2
Version published
Maintainers
1
Created
Source

Introduction

This is a simple encapsulation for manipulating the storage API when develops a Chrome extension.

The API follows the interfaces of chrome storage, but provides the feature of setting expires.

An Usage Example

import ChromeStorage from 'chrome_extension_storage';


const storage = new ChromeStorage();

storage.set({
  testKey: 'testValue',
  testKey2: 'testValue2',
});

storage.get('testKey').then((value) => {
  assert(value.testKey === 'testValue');
  assert(value.testKey2 === 'testValue2');
});

Keywords

chrome extension

FAQs

Package last updated on 31 Oct 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