0.0.1 • Published 8 years ago
hash-search v0.0.1
hash-search
location.hash & location.search for single page application
Install
$ npm install --save hash-search
Usage
const hashSearch = require('hash-search')
hashSearch('#/user/egoist?mode=admin')
/*
{
hash: '#/user/egoist',
search: '?mode=admin'
}
*/
API
hashSearch(hash)
hash
Type: string
Hash string, default is location.hash
License
MIT © EGOIST
0.0.1
8 years ago