minihash

v0.0.3
A simple wrapper around window.location.hash

minihash Build Status

Mini location.hash update system.

minihash illustration

Usage

var minihash = require('minihash');

var hash = minihash('!/', function(value) {
  // Value updated
});

// Update the window.location.hash value
hash.value = 'foo';

Installation

$ npm install minihash

Browser compatibility

IE9+ and modern browsers.

Browser support

License

MIT

Special thanks

Illustration made by Raphaƫl Bastide with scri.ch.

npm i minihash

Metadata

  • MIT
  • Whatever
  • Pierre Bertet
  • released 4/5/2015

Downloads

Maintainers