1.0.4 • Published 7 years ago
get-param-by-name v1.0.4
get-param-by-name
A JavaScript utility for retrieving a parameter value by name from a URL.
Please note: this package is really only needed if you have Internet Explorer support. URLSearchParams is the standard way to get a param by name.
Install
$ npm install --save get-param-by-nameor
$ yarn add get-param-by-nameUsage
import getParamByName from 'get-param-by-name';
const value = getParamByName(YOUR_PARAM_TO_SEARCH, URL);Contributing
Create an Issue if there is not already one created. Open up a Pull Request against master with your fix branch.
Install Dependencies
$ yarnRun Tests
$ yarn testRun a babel transpile
$ yarn build