# use-params-query

> React hook to get the all query params from the url or to get the value of a particular key.

Latest version **0.1.11** (published 2021-02-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install use-params-query
pnpm add use-params-query
yarn add use-params-query
bun add use-params-query
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.11 |
| Published | 2021-02-22 |
| First published | 2021-02-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | pavithrap24 |
| Keywords | react, react-hook, query param, use param query |

## Links

- npm: https://www.npmjs.com/package/use-params-query
- Repository: https://github.com/pavithrap24/use-query-params
- Homepage: https://github.com/pavithrap24/use-query-params#readme
- Issues: https://github.com/pavithrap24/use-query-params/issues
- npm.io page: https://npm.io/package/use-params-query

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.11 (latest) — 2021-02-22
- 0.1.10 — 2021-02-22
- 0.1.9 — 2021-02-22
- 0.1.8 — 2021-02-22
- 0.1.7 — 2021-02-22
- 0.1.6 — 2021-02-18
- 0.1.5 — 2021-02-18
- 0.1.4 — 2021-02-18
- 0.1.3 — 2021-02-18
- 0.1.2 — 2021-02-18
- 0.1.1 — 2021-02-18
- 0.1.0 — 2021-02-18

## README

# USE-PARAMS-QUERY

React hook to get the all query params from the url or to get the value of a particular key.

## Installation:

```

npm i use-params-query -s

```

## Basic Usage:

```

import useQueryParams, { useQueryParam } from "use-params-query";

const params = useQueryParams();
const param = useQueryParam("name");

```

## Example:

```
for the below url the results will be as follows.

http://localhost:3000?name=Sam&age=20

const params = useQueryParams();
the result will be:  [{name: 'Sam'}, {age: 20}]

const param = useQueryParam("name");
the result will be:  Sam

```

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