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
- Host: GitHub
- URL: https://github.com/bpierre/minihash
- Owner: bpierre
- License: mit
- Created: 2014-03-05T11:17:41.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2019-02-13T17:17:40.000Z (over 7 years ago)
- Last Synced: 2025-06-13T10:56:11.344Z (12 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# minihash [](https://travis-ci.org/bpierre/minihash)
Mini location.hash update system.

## 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.
[](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/).