Skip to content

oayandosu/chromeback

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chromeback

Mapping of Chrome APIs to node-style callbacks

Usage

var chromeApi = require('chromeback')(chrome);
// alternatively you can specify a specific chrome api by doing
// var chromeStorage = require('chromeback')(chrome.storage)

chromeApi.storage.sync.get('myItem', function(err, res){
  if(err){
    console.log('You would have had to check chrome.runtime.lastError to see this before!');
  }
  return res;
}

About

Mapping of Chrome APIs to node-style callbacks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%