/minihash

A simple wrapper around window.location.hash

Primary LanguageJavaScriptMIT LicenseMIT

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.