bpierre / minihash

A simple wrapper around window.location.hash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A simple wrapper around window.location.hash

License:MIT License


Languages

Language:JavaScript 93.4%Language:HTML 3.7%Language:Makefile 2.9%