An open API service indexing awesome lists of open source software.

https://github.com/bpierre/minihash

A simple wrapper around window.location.hash
https://github.com/bpierre/minihash

Last synced: 12 months ago
JSON representation

A simple wrapper around window.location.hash

Awesome Lists containing this project

README

          

# minihash [![Build Status](https://travis-ci.org/bpierre/minihash.png?branch=master)](https://travis-ci.org/bpierre/minihash)

Mini location.hash update system.

minihash illustration

## Usage

```js
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](https://ci.testling.com/bpierre/minihash.png)](https://ci.testling.com/bpierre/minihash)

## License

[MIT](LICENSE)

## Special thanks

Illustration made by [Raphaël Bastide](http://raphaelbastide.com/) with [scri.ch](http://scri.ch/).