{"_id":"@andyroid0/wintergreen-router","name":"@andyroid0/wintergreen-router","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@andyroid0/wintergreen-router","version":"0.0.1","description":"A simple router for react and react-native.","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/index.d.ts","source":"src/index.tsx","scripts":{"rollup":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/Andyroid0/winter-green-router.git"},"author":{"name":"Andrew Valley"},"license":"ISC","devDependencies":{"@rollup/plugin-commonjs":"^25.0.4","@rollup/plugin-node-resolve":"^15.2.0","@rollup/plugin-terser":"^0.4.3","@rollup/plugin-typescript":"^11.1.2","rollup":"^3.28.0","rollup-plugin-dts":"^6.0.0","rollup-plugin-peer-deps-external":"^2.2.4","rollup-plugin-postcss":"^4.0.2","tslib":"^2.6.2","typescript":"^5.1.6"},"peerDependencies":{"react":">=18","react-dom":">=18","@types/react":">=18"},"type":"module","gitHead":"fa6b1481b22ef72a3cab03bd86c10870fc331cae","bugs":{"url":"https://github.com/Andyroid0/winter-green-router/issues"},"homepage":"https://github.com/Andyroid0/winter-green-router#readme","_id":"@andyroid0/wintergreen-router@0.0.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-/5cRF/q1fnCIL8ETLHvq462NVxT2rdJw2evtGzIV7e7KdFPS1OL8XdGVZgZgfZaRrepiarYORe68ZTrua3zYnQ==","shasum":"b312569addb123a6d12f07df36cfd449ba4eda11","tarball":"https://registry.npmjs.org/@andyroid0/wintergreen-router/-/wintergreen-router-0.0.1.tgz","fileCount":13,"unpackedSize":8153,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBlRWCoC6pSt5c/IV2PT7edHiKreZ6oaJTtwe2BPGTkSAiBqiGEAvTa2Y7dYaKHIwXlggwqiTL9MU9XWNKiP6lR4sw=="}]},"_npmUser":{"name":"andyroid0","email":"andrewpvalley@gmail.com"},"directories":{},"maintainers":[{"name":"andyroid0","email":"andrewpvalley@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wintergreen-router_0.0.1_1692930970302_0.3549939129458577"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-25T02:36:10.234Z","0.0.1":"2023-08-25T02:36:10.492Z","modified":"2023-08-25T02:36:10.728Z"},"maintainers":[{"name":"andyroid0","email":"andrewpvalley@gmail.com"}],"description":"A simple router for react and react-native.","homepage":"https://github.com/Andyroid0/winter-green-router#readme","repository":{"type":"git","url":"git+https://github.com/Andyroid0/winter-green-router.git"},"author":{"name":"Andrew Valley"},"bugs":{"url":"https://github.com/Andyroid0/winter-green-router/issues"},"license":"ISC","readme":"# Wintergreen-router 🌲\n \n\nA simple router from react and react-native.\n\nNOTE: Right now it's equipped to handle screens. Path and Page handling to follow.\n\nTwitter/X= @_andrewvalley\n\n## Subscribe to my email list for updates on all of my products? [Click Here](https://www.adderst.one/subscribe \"Subscribe\")\n\n-*There won't be a confirmation email*\n\n\n\n\nInstall: \n```\nnpm i winter-green-router\n```\n\nUsage:\n```\n\nconst Example = () => {\n    \n    type possibleScreens = \"signin\" | \"signup\" | \"dashboard\" | \"contact\"\n    const ScreenRouter = Router.Screens<possibleScreens>\n    const Screen = Route.Screen<possibleScreens>\n    const [path, setPath] = useState<possibleScreens>('signin')\n\n    const SignIn = () => <div>SignIn</div>\n    const Dashboard = () => <div>Dashboard</div>\n\n\n    return <ScreenRouter\n        path={path}\n    >\n        <Screen\n            path='signin'\n            component={<SignIn/>}\n        />\n        <Screen\n            path='dashboard'\n            component={<Dashboard/>}\n        />\n    </ScreenRouter>\n}\n```","readmeFilename":"README.md"}