UNPKG

react-nested-routes

Version:

React nested routes is a react component which helps you to create nested routes in react application. It also provides a hook to get active path and active index of the route.

83 lines (82 loc) 2.27 kB
{ "name": "react-nested-routes", "version": "0.1.0", "author": "Abdhesh Nayak", "license": "MIT", "description": "React nested routes is a react component which helps you to create nested routes in react application. It also provides a hook to get active path and active index of the route.", "private": false, "types": "./dist/@types/index.d.ts", "main": "./dist/index.js", "module": "./dist/index.mjs", "sideEffects": false, "exports": { ".": { "import": { "default": "./dist/index.mjs" }, "require": { "default": "./dist/index.js" } } }, "files": [ "dist", "README.md", "LICENSE" ], "scripts": { "build": "npm run clean && node build.js && npm run tsc", "clean": "rimraf dist", "dev": "esbuild src/test.ts --bundle --format=cjs --outfile=out/index.cjs && node out/index.cjs", "tsc": "tsc --emitDeclarationOnly --outDir ./dist/@types" }, "repository": { "type": "git", "url": "https://github.com/abdheshnayak/react-nested-routes.git" }, "keywords": [ "react", "routes", "react-routes", "nested-routes", "tabbar", "component", "activepath", "hook" ], "dependencies": { "react-router": "^6.0.2", "react": "^17.0.2 || ^18.0.0" }, "peerDependencies": { "react": "^17.0.2 || ^18.0.0", "react-router": "^6.0.2", "@types/react": "^18.2.22" }, "peerDependenciesMeta": { "@types/react": { "optional": true } }, "devDependencies": { "@types/react": "^18.2.22", "@typescript-eslint/eslint-plugin": "^6.4.1", "@typescript-eslint/parser": "^6.4.1", "esbuild": "^0.19.2", "eslint": "^8.47.0", "eslint-config-airbnb": "19.0.4", "eslint-config-prettier": "^8.3.0", "eslint-import-resolver-jsconfig": "^1.1.0", "eslint-import-resolver-node": "^0.3.6", "eslint-import-resolver-typescript": "^3.6.0", "eslint-plugin-import": "^2.25.4", "eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-prefer-arrow-functions": "^3.1.4", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.28.0", "eslint-plugin-react-hooks": "^4.3.0", "prettier": "^2.8.8", "rimraf": "^5.0.1", "typescript": "^5.2.2" } }