Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
63 lines (34 sloc) 1.45 KB

chrx

CommonJS modules for developing Chrome Extensions

This project is an attempt to collect some reusable modules for developing Chrome Extensions and distribute them via npm.

At time of writing, everything is pretty experimental and unstable.

Installation

Install via npm:

$ npm install chrx

Usage

chrx is designed to be used with browserify (or watchify). This approach is demonstrated in the included examples.

Modules

Background

Modules and methods for use in background or event scripts.

chrx.tabs

Manipulate tabs

chrx.window

Manipulate windows

Content

Modules and methods for use in content scripts.

chrx.frame

Create sandboxed Content environments

Combo

Modules and methods that integrate Background and Content.

chrx.bridge

Create shared Content and Background APIs

Tests

Install dependencies and run:

$ npm install
$ npm test

License

MIT License, see LICENSE for details.