Skip to content

twistly/chrome-storage-promise

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chrome-storage-promise

npm version Bower version Dependency Status Build Status

Installation

npm

npm install --save chrome-storage-promise

bower

bower install --save chrome-storage-promise

Usage

// set
chrome.storage.promise.local.set({'foo': 'bar'}).then(function() {
  // resolved
  console.log('set');
}, function(error) {
  // rejected
  console.log(error);
});

// get
chrome.storage.promise.local.get('foo').then(function(items) {
  // resolved
  console.log(items); // => {'foo': 'bar'}
}, function(error) {
  // rejected
  console.log(error);
});

Development

Build

npm install
npm run build

Test

npm install
npm run build
npm test

Lisence

The MIT License.

About

A chrome.storage wrapper that is using promise

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%