node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



A simple file watcher that clears the console and runs flow on each change. Currently tested on OS X -- I don't know if it works on Linux or Windows. Works with flow on your path or flow-bin installed as a peer dependency.


npm install --save-dev flow-watch

Add a script to your package.json:

  "scripts": {
    "flow:watch": "flow-watch"


flow-watch uses nodemon and accepts any command-line options that nodemon does. If you provide no arguments, it uses the following defaults:

--ignore node_modules/ --watch *.js --watch *.jsx --watch *.js.flow --watch .flowconfig