- remy/nodemon
- https://github.com/remy/nodemon
- Monitor for any changes in your node.js application and automatically restart the server - perfect for development
- ファイルの変更を検知して自動的にコードを再実行してくれるパッケージ
- npmを使って使用したいプロジェクトにnodemonをインストール
npm install -D nodemon
- package.jsonの
scripts
を書き換える
"scripts": {
"start": "node index.js"
}
- Go!
npm start
- 開発の際にコードの編集、実行、ctrl+Cの繰り返しをする必要がなくなる
- 効率がまあまあアップする