Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 568 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 568 Bytes

get-query-param Build Status

Get a particular search query param from the current url or a specified url.

Installation

npm install --save bellmounte-get-query-param

Usage

const getQueryParam = require('bellmounte-get-query-param');

// http://example.com/test?test=true
getQueryParam('test');  // true
getQueryParam('test', 'test=false');  // false
getQueryParam('true');  // undefined

License

MIT