# param-by-name

> Get url param by name

Latest version **1.0.1** (published 2017-08-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install param-by-name
pnpm add param-by-name
yarn add param-by-name
bun add param-by-name
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-08-22 |
| First published | 2017-08-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Justin Nel |
| Maintainers | cyberlane |

## Links

- npm: https://www.npmjs.com/package/param-by-name
- Repository: https://github.com/Cyberlane/param-by-name
- Homepage: https://github.com/Cyberlane/param-by-name#readme
- Issues: https://github.com/Cyberlane/param-by-name/issues
- npm.io page: https://npm.io/package/param-by-name

## Recent versions

- 1.0.1 (latest) — 2017-08-22
- 1.0.0 — 2017-08-21

## README

# param-by-name

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

## Example

```js
import paramByName from 'param-by-name';

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

---
_Source: https://npm.io/package/param-by-name · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
