Gathering detailed insights and metrics for use-query-params
Gathering detailed insights and metrics for use-query-params
Gathering detailed insights and metrics for use-query-params
Gathering detailed insights and metrics for use-query-params
React Hook for managing state in URL query parameters with easy serialization.
npm install use-query-params
v2.2.1
Published on 24 Mar 2023
v2.2.0
Published on 08 Feb 2023
v2.1.1
Published on 17 Sept 2022
v2.1.0
Published on 31 Aug 2022
v2.0.1
Published on 31 Aug 2022
v2.0.0
Published on 16 Aug 2022
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
2,171 Stars
357 Commits
96 Forks
14 Watching
8 Branches
29 Contributors
Updated on 21 Nov 2024
Minified
Minified + Gzipped
TypeScript (98.52%)
JavaScript (1.48%)
Cumulative downloads
Total Downloads
Last day
-7.5%
51,047
Compared to previous day
Last week
3%
292,417
Compared to previous week
Last month
6.1%
1,248,358
Compared to previous month
Last year
12.3%
14,210,746
Compared to previous year
1
4
23
A React Hook, HOC, and Render Props solution for managing state in URL query parameters with easy serialization.
Works with React Router 5 and 6 out of the box. TypeScript supported.
When creating apps with easily shareable URLs, you often want to encode state as query parameters, but all query parameters must be encoded as strings. useQueryParams
allows you to easily encode and decode data of any type as query parameters with smart memoization to prevent creating unnecessary duplicate objects. It uses serialize-query-params.
This is a monorepo managed with Lerna.
Package | Version | Docs | Description |
---|---|---|---|
use-query-params | use-query-params React library | ||
serialize-query-params | serialize-query-params js library |
To get running locally:
npm install
npx lerna bootstrap --hoist --scope "use-query-params" --scope "serialize-query-params"
npm build
npm test
Set up examples:
lerna bootstrap --scope "*-example"
lerna link
Then run one:
lerna run --scope react-router-example start
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 7/30 approved changesets -- score normalized to 2
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
25 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More