Skip to content

tiny wrapper for chrome events, inspired by component/events

Notifications You must be signed in to change notification settings

segment-boneyard/chrome-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chrome-events

tiny wrapper for chrome events, inspired by component/events

Installation

Install with component(1):

$ component install segmentio/chrome-events

Example

var events = require('chrome-events');

function App(){
  this.events = events(chrome.runtime, this);
  this.events.bind('installed');
  this.events.bind('startup');
  this.events.bind('suspend');
  this.events.bind('message');
}

App.prototype.oninstalled = function(){};
App.prototype.onstartup = function(){};
App.prototype.onsuspend = function(){};
App.prototype.onmessage = function(){};

License

MIT

About

tiny wrapper for chrome events, inspired by component/events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published