{"id":15433637,"url":"https://github.com/mskelton/use-strict-params","last_synced_at":"2026-01-25T17:05:50.869Z","repository":{"id":210236051,"uuid":"725827420","full_name":"mskelton/use-strict-params","owner":"mskelton","description":"Strictly typed params for React router.","archived":false,"fork":false,"pushed_at":"2024-06-24T15:16:58.000Z","size":178,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-25T14:50:07.555Z","etag":null,"topics":["params","react","react-router","strict","typescript"],"latest_commit_sha":null,"homepage":"https://npm.im/use-strict-params","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mskelton.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-01T00:27:17.000Z","updated_at":"2024-06-24T15:17:01.000Z","dependencies_parsed_at":"2024-02-17T03:29:09.013Z","dependency_job_id":"a5dbda0b-de2e-41fc-94cd-b74163f2cbcc","html_url":"https://github.com/mskelton/use-strict-params","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"42a3d6e40b7b3090cb778a73201a01657c0e9970"},"previous_names":["mskelton/use-strict-params"],"tags_count":2,"template":false,"template_full_name":"mskelton/npm-template","purl":"pkg:github/mskelton/use-strict-params","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskelton%2Fuse-strict-params","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskelton%2Fuse-strict-params/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskelton%2Fuse-strict-params/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskelton%2Fuse-strict-params/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mskelton","download_url":"https://codeload.github.com/mskelton/use-strict-params/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskelton%2Fuse-strict-params/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28755563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T16:32:25.380Z","status":"ssl_error","status_checked_at":"2026-01-25T16:32:09.189Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["params","react","react-router","strict","typescript"],"created_at":"2024-10-01T18:34:46.571Z","updated_at":"2026-01-25T17:05:50.853Z","avatar_url":"https://github.com/mskelton.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# use-strict-params\n\n[![Build status](https://github.com/mskelton/use-strict-params/workflows/Build/badge.svg)](https://github.com/mskelton/use-strict-params/actions)\n[![npm version](https://img.shields.io/npm/v/use-strict-params)](https://www.npmjs.com/package/use-strict-params)\n\nStrictly typed params for React router.\n\n## Installation\n\n### npm\n\n```sh\nnpm install use-strict-params\n```\n\n### Yarn\n\n```sh\nyarn add use-strict-params\n```\n\n### pnpm\n\n```sh\npnpm add use-strict-params\n```\n\n### bun\n\n```sh\nbun add use-strict-params\n```\n\n## Usage\n\n### `useStrictParams`\n\nA typed variant of `useParams`. The following types are supported:\n\n- `String`\n- `Number`\n- `Boolean`\n- `Date`\n\n```typescript\nconst { userId } = useStrictParams({ userId: Number })\n```\n\n### `useStrictSearchParams`\n\nA typed variant of `useSearchParams`. The following types are supported:\n\n- `String`\n- `Number`\n- `Boolean`\n- `Date`\n\n```typescript\nconst { query } = useStrictSearchParams({ query: String })\n```\n\n### `Optional`\n\nMarks a type as optional which will change the return type to allow `null`.\n\n```typescript\nconst { query } = useStrictSearchParams({ query: Optional(String) })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmskelton%2Fuse-strict-params","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmskelton%2Fuse-strict-params","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmskelton%2Fuse-strict-params/lists"}