react-magic-search-params
Version:
Type-safe React hook to manage URL query/search params with React Router useSearchParams.
113 lines (112 loc) • 3.01 kB
JSON
{
"description": "Type-safe React hook to manage URL query/search params with React Router useSearchParams.",
"repository": {
"type": "git",
"url": "git+https://github.com/Gabriel117343/react-magic-search-params.git"
},
"homepage": "https://react-magic-search-params.netlify.app",
"bugs": {
"url": "https://github.com/Gabriel117343/react-magic-search-params/issues"
},
"keywords": [
"react",
"react-hook",
"react-router",
"react-router-dom",
"useSearchParams",
"search-params",
"query-params",
"url-search-params",
"url-state",
"typescript",
"type-safe",
"filters",
"pagination",
"sorting"
],
"version": "2.4.4",
"private": false,
"license": "MIT",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"typings": "dist/index.d.ts",
"sideEffects": false,
"files": [
"dist"
],
"engines": {
"node": ">=18"
},
"packageManager": "pnpm@10.7.1",
"scripts": {
"start": "tsup --watch",
"dev": "tsup --watch",
"typecheck": "tsc --noEmit",
"build": "tsup",
"test": "vitest run --environment jsdom",
"test:dist": "vitest run --environment jsdom test/useMagicSearchParams.dist.test.tsx",
"test:watch": "vitest --environment jsdom",
"lint": "tsc --noEmit",
"prepare": "tsup",
"prepublishOnly": "pnpm run typecheck && pnpm test && pnpm run build && pnpm run test:dist",
"size": "size-limit",
"analyze": "size-limit --why",
"prepack": "pnpm run build && node -e \"const fs=require('fs');fs.copyFileSync('README.md','.README.repo.md');fs.copyFileSync('README_NPM.md','README.md');\"",
"postpack": "node -e \"const fs=require('fs');if(fs.existsSync('.README.repo.md')){fs.copyFileSync('.README.repo.md','README.md');fs.unlinkSync('.README.repo.md');}\""
},
"peerDependencies": {
"react": ">=18 <20",
"react-router-dom": ">=6"
},
"husky": {
"hooks": {
"pre-commit": "tsdx lint"
}
},
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
},
"name": "react-magic-search-params",
"author": "Gabriel S.",
"size-limit": [
{
"path": "dist/index.cjs",
"limit": "10 KB"
},
{
"path": "dist/index.js",
"limit": "10 KB"
}
],
"devDependencies": {
"@size-limit/preset-small-lib": "^11.2.0",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@testing-library/react": "^16.3.0",
"husky": "^9.1.7",
"jsdom": "^26.1.0",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react-router-dom": "^7.0.0",
"size-limit": "^11.2.0",
"tsup": "^8.5.0",
"tslib": "^2.8.1",
"typescript": "^5.8.3",
"vitest": "^3.2.4"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"publishConfig": {
"access": "public",
"registry": "https://npmjs.org"
}
}