@search-params/ts
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Search Params

Read and write URLSearchParams with full type-safety using @search-params/ts using any UI framework and any schema validation library.

Introduction

This project is heavily inspired by TanStack's Router Search Params with the exception that (a) it isn't limited to a specific React framework and (b) it reads and writes Search Params using the same hook.

Why Search Params?

The URL Search Params is perfectly able to act as a form of global state. If you would like to know more about this, give TanStack's Router Search Params, the "OG" State Manager a read.

Readme

Keywords

Package Sidebar

Install

npm i @search-params/ts

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

7.41 kB

Total Files

6

Last publish

Collaborators

  • hectorsosa