hashget
window.location.hash parser and make life easier
Installation
Install via npm
npm install hashget
Install via yarn
yarn add hashget
windowlocationhash = "#empty&test=100" var locHash = ; var count = locHash console // 2 var has = locHash console // true var has = locHash console // true var value = locHash console // 100 var value = locHash console // undefined
Development & Testing
Since we did not want to mess with bundlers for such small library, Comment this line in index.js in order to run test
//export {HashGet}
Chrome only
npm run test
or
yarn test
All browsers including IE and Safari
npm run test:all
or
yarn test:all
We ❤️ NPM and Yarn