watchrun

0.0.6 • Public • Published

watchrun

Watching directory to ad hoc will run command.

Install

$ npm install -g ngyuki/watchrun

Example

Watching current directory.

$ watchrun date
Command: [ 'date' ]
Pattern: [ '**/*' ]

Update file by other console.

$ touch ./README.md

date command is run on first console.

$ watchrun ./ -- date
Command: [ 'date' ]

Waiting... changed README.md
Thu Apr  7 22:51:02 JST 2016

Waiting...

Use Shell

watchrun does not use shell to run command. Therefore, the following does not work.

watchrun 'gcc a.c && ./a.out'

Please use -c option of bash as below.

watchrun bach -c 'gcc a.c && ./a.out'

Readme

Keywords

Package Sidebar

Install

npm i watchrun

Weekly Downloads

2

Version

0.0.6

License

MIT

Last publish

Collaborators

  • ngyuki