wouter-preact
Version:
Minimalist-friendly ~1.5KB router for Preact
78 lines (77 loc) • 1.72 kB
JSON
{
"name": "wouter-preact",
"version": "3.7.1",
"description": "Minimalist-friendly ~1.5KB router for Preact",
"type": "module",
"keywords": [
"react",
"preact",
"router",
"tiny",
"routing",
"hooks",
"useLocation"
],
"files": [
"esm",
"types/**/*.d.ts",
"types/*.d.ts"
],
"main": "esm/index.js",
"exports": {
".": {
"types": "./types/index.d.ts",
"default": "./esm/index.js"
},
"./use-browser-location": {
"types": "./types/use-browser-location.d.ts",
"default": "./esm/use-browser-location.js"
},
"./use-hash-location": {
"types": "./types/use-hash-location.d.ts",
"default": "./esm/use-hash-location.js"
},
"./memory-location": {
"types": "./types/memory-location.d.ts",
"default": "./esm/memory-location.js"
}
},
"types": "types/index.d.ts",
"typesVersions": {
">=4.1": {
"types/index.d.ts": [
"types/index.d.ts"
],
"use-browser-location": [
"types/use-browser-location.d.ts"
],
"use-hash-location": [
"types/use-hash-location.d.ts"
],
"memory-location": [
"types/memory-location.d.ts"
]
}
},
"scripts": {
"build": "rollup -c",
"watch": "rollup -c -w",
"prepublishOnly": "npm run build && cp ../../README.md ."
},
"author": "Alexey Taktarov <molefrog@gmail.com>",
"repository": {
"type": "git",
"url": "git+https://github.com/molefrog/wouter.git"
},
"license": "Unlicense",
"peerDependencies": {
"preact": "^10.0.0"
},
"dependencies": {
"mitt": "^3.0.1",
"regexparam": "^3.0.0"
},
"devDependencies": {
"wouter": "*"
}
}