API Reference
nodemon
Monitors your Node.js application and automatically restarts it when files change, ideal for development.
Official Documentation ↗CompatibilityThis documentation covers version
v3.1. Check the official docs for the latest API surface.Installation
npm
npm install --save-dev nodemonMethods
No methods match this filter.
nodemon wraps your start command and restarts the process on file changes matching its watch rules.
Key Features
- Configurable watch paths and extensions
- nodemon.json config file
- Programmatic API for embedded use
Usage Notes
Pin a version and check the official docs for the API surface you depend on before upgrading.
API reference evidence
Fetched from official sources on 2026-11-08T19:58:23+08:00 via WebFetch https://nodemon.io/;WebFetch https://cdn.jsdelivr.net/gh/remy/nodemon@master/README.md(raw main 分支 README 返回空).
nodemon (CLI)→ signature from https://cdn.jsdelivr.net/gh/remy/nodemon@master/README.md; official text: “# Usage nodemon wraps your application, so you can pass all the arguments you would normally pass to your app:bash nodemon [your node app]”
FAQ
- Why does it restart twice on every save?
- Editors write through a temporary file or emit two change events. Add the editor temp pattern to ignore and use --delay to coalesce the burst.
- Can nodemon run TypeScript directly?
- Yes. Point --exec at ts-node or tsx and set --ext ts so it restarts on TypeScript changes.
- Is nodemon for production?
- No. It is a development convenience. Run your process under a real supervisor such as systemd or a container orchestrator in production.
Report a problem with this API docOpens a pre-filled issue on GitHub.