{"library":"nodemon","title":"Nodemon","description":"Nodemon is a utility that monitors for changes in your Node.js application files and automatically restarts the server, streamlining the development workflow. It acts as a wrapper for your Node.js application, requiring no code changes. The current stable version is 3.1.14, and it maintains an active release cadence, primarily issuing bug fixes and type definition updates.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install nodemon"],"cli":{"name":"nodemon","version":null}},"imports":["import nodemon from 'nodemon';","import { restart } from 'nodemon';","npx nodemon my-app.js"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"{\n  \"name\": \"my-node-app\",\n  \"version\": \"1.0.0\",\n  \"description\": \"My sample app\",\n  \"main\": \"src/index.js\",\n  \"scripts\": {\n    \"dev\": \"nodemon src/index.js\",\n    \"start\": \"node src/index.js\"\n  },\n  \"devDependencies\": {\n    \"nodemon\": \"^3.0.0\"\n  }\n}\n\n// src/index.js\nconst express = require('express');\nconst app = express();\nconst PORT = process.env.PORT ?? 3000;\n\napp.get('/', (req, res) => {\n  res.send('Hello from Nodemon! Last updated: ' + new Date().toLocaleTimeString());\n});\n\napp.listen(PORT, () => {\n  console.log(`Server running on http://localhost:${PORT}`);\n});\n","lang":"javascript","description":"This demonstrates how to set up `nodemon` as a development dependency in a `package.json` file and run a simple Express application. When you run `npm run dev`, nodemon will start the server and automatically restart it whenever `src/index.js` (or other watched files) change. The server will display a changing timestamp on each reload.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}