{"_id":"@andatoshiki/vitepress-plugin-nprogress","name":"@andatoshiki/vitepress-plugin-nprogress","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@andatoshiki/vitepress-plugin-nprogress","version":"0.0.1","description":"Vitepress plugin for implementing an nprogress loading bar at the top of the documentation","repository":{"type":"git","url":"git+https://github.com/lolilab/vitepress-plugin-nprogress.git"},"type":"module","author":{"name":"Anda Toshiki, LoliLab","email":"hello@toshiki.dev"},"license":"MIT","private":false,"main":"./lib/vitepress-plugin-nprogress.umd.cjs","types":"./lib/index.d.ts","scripts":{"build":"vite build && tsc -p tsconfig.build.json"},"dependencies":{"nprogress":"^0.2.0"},"devDependencies":{"@babel/types":"^7.19.4","@types/node":"^18.11.0","typescript":"^4.8.4","vitepress":"^1.0.0-alpha.18"},"gitHead":"f0c71d62d3ee73a6ace7f98757944f1397d3a59e","bugs":{"url":"https://github.com/lolilab/vitepress-plugin-nprogress/issues"},"homepage":"https://github.com/lolilab/vitepress-plugin-nprogress#readme","_id":"@andatoshiki/vitepress-plugin-nprogress@0.0.1","_nodeVersion":"16.18.0","_npmVersion":"9.4.1","dist":{"integrity":"sha512-paDDheLnntny7iPFck4D6vzJgC7BKBqgpXFG6aMXHRDpH/YlxvH32xCgVYZ8lHmcoLZc084Rk/Ik4FwL8M2qgQ==","shasum":"ef7ee6e2a8f9dc0b31306064e74aaf8efc0040ae","tarball":"https://registry.npmjs.org/@andatoshiki/vitepress-plugin-nprogress/-/vitepress-plugin-nprogress-0.0.1.tgz","fileCount":9,"unpackedSize":54334,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFlhffFeajMnc5S1uM9FOgdQbUlqKk+dpmB5aRQYPgYVAiBzPFhWvDKU3vWveEcVEVsT+UYa3DsliarnU09uAmtW9A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHWLzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfCw/+M/MrQPQtExdWE2e/UnGUYjTTfC2p65z0DKdXvK+tBrxz+/VE\r\n4kH3lSBM5U74fSLPLGE97EBo3tmVgvmy9JdiqaEwvuQesCk19b2POw4XWkD8\r\nZHILLwXfvNav2SPEDw+HgvOcmGA7P/Q0dRLOXB0DtrSOndsNrrGhliDoz12l\r\ns/0ItotlPZ0pbytOK7G1/9aQz+Eo9jHhewk8NLbBomcWEh6JC2c1uSt6IADG\r\nDWE9h4jC6b0swLUFM7iIZhdVVIvb//2AXC2JTpVyHjalE5rf/EMAQ0WG0JUO\r\n8oMgicW6SYyXuean++xujXvMduXOT0GreOgdnNAQSBLvMDEsagM5rVkmPjHc\r\nhlWowoUB8GE1mzASAHZ+JjwwtkuvZ2SKR5vNeNqivIvtAOqIsSyVvfFwj1i3\r\neB5ZMhG9TDxHccp1V0ErxEWVZ4hqgk2zqFDJf9RUle5M35TEYR541pkr5eUw\r\n+niE//m8VHCl+zPMhdLG8S2+GLFgKJeM248yck26AwUF6babnaJy1DXNUhWK\r\n2IeHeDsCTG0Xj6d19/ZVdBaYM6pkr8mcXgu2OWkE5aHQwDsXBHcS6R25b48x\r\n40L1UJzAO1T9Zs8sQfWBGFWCSG356mZmf9Ezgel7lkuzBK/l9wx1G+eYo0Hh\r\niLcZjoO3Gii7Y1pFQB4b8hgbJGLzfO+ldAU=\r\n=19Ni\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"andatoshiki","email":"andatoshiki@outlook.com"},"directories":{},"maintainers":[{"name":"andatoshiki","email":"andatoshiki@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vitepress-plugin-nprogress_0.0.1_1679647475250_0.9612602411996956"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-24T08:44:35.169Z","0.0.1":"2023-03-24T08:44:35.402Z","modified":"2023-03-24T08:44:35.639Z"},"maintainers":[{"name":"andatoshiki","email":"andatoshiki@outlook.com"}],"description":"Vitepress plugin for implementing an nprogress loading bar at the top of the documentation","homepage":"https://github.com/lolilab/vitepress-plugin-nprogress#readme","repository":{"type":"git","url":"git+https://github.com/lolilab/vitepress-plugin-nprogress.git"},"author":{"name":"Anda Toshiki, LoliLab","email":"hello@toshiki.dev"},"bugs":{"url":"https://github.com/lolilab/vitepress-plugin-nprogress/issues"},"license":"MIT","readme":"# @andatoshiki/vitepress-plugin-nprogress\n\n> Nprogress plugin for Vitepress\n\n## Install\n```sh\nyarn add -D @andatoshiki/vitepress-plugin-nprogress\n# npm install -D vitepress-plugin-nprogress\n```\n\n## Usage\n```ts\n// .vitepress/theme/index.ts\n\nimport DefaultTheme from \"vitepress/theme\"\n\nimport vitepressNprogress from '@andatoshiki/vitepress-plugin-nprogress'\nimport '@andatoshiki/vitepress-plugin-nprogress/lib/css/index.css'\n\nexport default {\n  ...DefaultTheme,\n  enhanceApp: (ctx) => {\n    vitepressNprogress(ctx)\n  }\n}\n```\n\n## Tips\nIf got `TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension \".css\" for ***/node_modules/nprogress/nprogress.css` error when you build, \n\nyou can config like this in your `vite.config.ts`:\n```ts\n// vite.config.ts\nimport {defineConfig} from 'vite'\n\nexport default defineConfig({\n  ssr: {\n    noExternal: ['@andatoshiki/vitepress-plugin-nprogress']\n  },\n})\n```\n\nVoila, then you can use `nprogress` ! 🎉","readmeFilename":"README.md"}