1.0.1 • Published 7 years ago

param-by-name v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

param-by-name

Parsing url parameters within the browser can be a pain, so this tries to make it a little easier.

Example

import paramByName from 'param-by-name';

const search = paramByName('search');
if (Boolean(search)) {
  alert(`Searching for ${search}`);
} else {
  alert('No search param found');
}