Skip to content

A JavaScript utility for retrieving a parameter value by name from a URL.

License

Notifications You must be signed in to change notification settings

mhfen/get-param-by-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-param-by-name

npm CircleCI (all branches) License: MIT

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-name

or

$ yarn add get-param-by-name

Usage

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

$ yarn

Run Tests

$ yarn test

Run a babel transpile

$ yarn build

About

A JavaScript utility for retrieving a parameter value by name from a URL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published