hashwatch
This module lets you listen for hashchange events in all browsers, even those that don’t emit the hashchange
event.
** The tests should pass in all browsers, even IE 6 and friends! **
Install
$ npm install hashwatch
Usage
var watch = handler { console console watch }
Page weight
require('hashwatch')
compression | size |
---|---|
hashwatch.js | 1.37 kB |
hashwatch.min.js | 980 B |
hashwatch.min.js.gz | 480 B |
Running the tests
Until testling comes back (or is replaced by something elegant) you can run the tests yourself in any browser:
$ git clone git@github.com:michaelrhodes/hashwatch$ cd hashwatch$ npm install$ npm test