astro-nprogress
v0.0.2
Published
Nprogress using in astro while the astro view transition is enabled.
Maintainers
Readme
astro-nprogress
Nprogress using in astro while the astro view transition is enabled.
Installation
# ✨ Auto-detect
npx nypm install astro-nprogress
# npm
npm install astro-nprogress
# yarn
yarn add astro-nprogress
# pnpm
pnpm add astro-nprogress
# bun
bun install astro-nprogress
# deno
deno install npm:astro-nprogressBasic Usage
// astro.config.ts
import nprogress from 'astro-nprogress'
import { defineConfig } from 'astro/config'
export default defineConfig({
integrations: [nprogress()],
})---
// layout.astro
import NProgress from 'astro-nprogress/components'
---
<html>
<!-- ... -->
<body>
<slot />
<NProgress />
</body>
</html>
Contribution
- Clone this repository
- Install the latest LTS version of Node.js
- Enable Corepack using
corepack enable - Install dependencies using
pnpm install - Run tests using
pnpm devorpnpm test
Sponsors
License
Published under the MIT license. Made by @byronogis and community 💛
🤖 auto updated with automd (last updated: Tue Oct 07 2025)
