node package manager


Simple utility for watching files/dirs and restart applications.


A super simple watch librarty for restarting processes. 100 lines and no dependencies.


npm install -g restart


npm install restart

restart --watch server.js --exec node server.js

restart --watch shared --exclude shared/.git --exec browserify shared/main.js -o public/bundle.js

--watch: list of files and/or directories to watch

--exclude: list of files and/or directories to exclude from watching

--exec (re)start process with command and following arguments when a watched file changes

  • Wildchar notation
  • Figure out when it's safe to use