hash-search
location.hash & location.search for single page application
Last updated 5 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hash-search 
SYNC missed versions from official npm registry.

hash-search Build Status

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

Current Tags

  • 0.0.1                                ...           latest (5 years ago)

1 Versions

  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |