パッケージの詳細

nuxt-dev-ready

dword-design819MIT5.0.1

Waits until the Nuxt dev server is loaded. Mainly useful for testing.

wait

readme

nuxt-dev-ready

npm version Linux macOS Windows compatible Build status Coverage status Dependency status Renovate enabled
Open in Gitpod Buy Me a Coffee PayPal Patreon

Waits until the Nuxt dev server is loaded. Mainly useful for testing. ## Install bash # npm $ npm install nuxt-dev-ready # Yarn $ yarn add nuxt-dev-ready ## Usage js import { execaCommand } from 'execa'; import kill from 'tree-kill-promise'; import nuxtDevReady from 'nuxt-dev-ready'; const nuxt = execaCommand('nuxt dev'); try { await nuxtDevReady(); // Do some testing } finally { await kill(nuxt.pid); } ## Custom port You can pass a custom port to nuxtDevReady like so: js import { execaCommand } from 'execa'; import kill from 'tree-kill-promise'; import nuxtDevReady from 'nuxt-dev-ready'; const nuxt = execaCommand('nuxt dev', { env: { PORT: 4000 } }); try { await nuxtDevReady(4000); } finally { await kill(nuxt.pid); } ## Contribute Are you missing something or want to contribute? Feel free to file an issue or a pull request! ⚙️ ## Support Hey, I am Sebastian Landwehr, a freelance web developer, and I love developing web apps and open source packages. If you want to support me so that I can keep packages up to date and build more helpful tools, you can donate here:

Buy Me a Coffee  If you want to send me a one time donation. The coffee is pretty good 😊.
PayPal  Also for one time donations if you like PayPal.
Patreon  Here you can support me regularly, which is great so I can steadily work on projects.

Thanks a lot for your support! ❤️

License

MIT License © Sebastian Landwehr

更新履歴

5.0.1 (2025-07-21)

Bug Fixes

5.0.0 (2025-07-21)

Bug Fixes

BREAKING CHANGES

  • node.js >= 20

4.0.1 (2025-06-15)

Bug Fixes

4.0.0 (2025-06-15)

Bug Fixes

BREAKING CHANGES

  • drop nuxt 2 support

3.0.0 (2024-01-24)

Bug Fixes

BREAKING CHANGES

  • node.js >= 18

2.0.1 (2023-05-19)

Bug Fixes

2.0.0 (2023-05-19)

Bug Fixes

BREAKING CHANGES

  • drop node 14 support, simplify api

1.1.2 (2023-05-17)

Bug Fixes

1.1.1 (2023-05-17)

Bug Fixes

  • update config files (be23003)
  • write GitHub metadata to package.json [keywords] (#4) (ee54b08)

1.1.0 (2023-05-15)

Features

1.0.0 (2023-05-12)

Bug Fixes

Features