UNPKG

active-link-nextjs

Version:

React hook to use with nextjs router to auto apply active class on active link

48 lines (47 loc) 1.15 kB
{ "name": "active-link-nextjs", "version": "0.1.7", "type": "module", "exports": { ".": "./dist/use-active-router.js", "./dist/*": "./dist/*" }, "description": "React hook to use with nextjs router to auto apply active class on active link", "types": "./dist/use-active-router.d.ts", "files": [ "src", "dist", "types" ], "scripts": { "build": "rm -rf dist && tsc", "prepublishOnly": "npm run build", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "git+https://github.com/rishabhrpg/active-link-nextjs.git" }, "keywords": [ "active", "link", "nextjs" ], "author": "Rishabh Gusain", "license": "MIT", "bugs": { "url": "https://github.com/rishabhrpg/active-link-nextjs/issues" }, "homepage": "https://github.com/rishabhrpg/active-link-nextjs#readme", "devDependencies": { "@types/node": "^18.16.3", "@types/react": "^18.2.1", "@types/react-dom": "^18.2.2", "typescript": "^5.0.4" }, "peerDependencies": { "next": "^13.0.0", "react": "^18.2.0", "react-dom": "^18.2.0" } }