UNPKG

@getaround-eu/use-route-params

Version:

A hook to get typed params from route

69 lines (68 loc) 1.98 kB
{ "name": "@getaround-eu/use-route-params", "version": "1.0.4", "description": "A hook to get typed params from route", "main": "index.js", "module": "index.mjs", "types": "types/index.d.ts", "author": "CPatchane <code@patchane.com>", "license": "MIT", "peerDependencies": { "react-router-dom": "^6.3.0" }, "scripts": { "test": "vitest run --globals test.tsx", "prebuild": "rm -rf dist/", "build:cjs": "esbuild ./lib/index.ts --bundle --outdir=dist --external:react-router-dom --format=cjs", "build:mjs": "esbuild ./lib/index.ts --bundle --outdir=dist --external:react-router-dom --format=esm --out-extension:.js=.mjs", "build": "yarn build:cjs && yarn build:mjs && cp -rf ./package.json dist && cp -rf ./LICENSE dist && cp -rf ./README.md dist", "postbuild": "tsc --project tsconfig-build.json", "lint": "eslint ./lib && tsc --noEmit", "build:publish": "yarn build && np --contents dist" }, "devDependencies": { "@getaround-eu/eslint-config": "1.7.1", "@getaround-eu/prettier-config": "1.2.0", "@getaround-eu/ts-config": "2.1.0", "@rushstack/eslint-patch": "1.1.4", "@testing-library/react": "13.3.0", "@types/node": "18.0.3", "@types/react": "18.0.15", "conditional-type-checks": "1.0.6", "esbuild": "0.14.49", "eslint": "8.19.0", "jsdom": "20.0.0", "np": "7.6.2", "prettier": "2.7.1", "react": "18.2.0", "react-dom": "18.2.0", "react-router-dom": "6.3.0", "typescript": "4.7.4", "vitest": "0.18.0" }, "repository": { "type": "git", "url": "git+https://github.com/drivy/use-route-params.git" }, "publishConfig": { "registry": "https://registry.npmjs.org", "access": "public" }, "files": [ "types/**/*", "index.js", "LICENSE" ], "keywords": [ "react-router", "react-router-dom", "react", "router", "typescript", "params", "url", "hook", "typed", "use-params" ] }