Novel Personal Mantras

    simple-file-watch

    2.0.1 • Public • Published

    Simple-file-watch

    Install:

    npm install -g simple-file-watch
    

    Simple nodejs cli command that will watch for changes rescursively in a directory, and execute a command (optional) on changes.

    Usage example:

    simple-file-watch --extension='js,php' --path='.' --command='ls -l' --silence
    

    If you run the command without any params, it will watch any file changes in current directory, and output some info to stdout. If you specify command then the the given command will be executed on file changes. If you specify extension then the command will only be executed on changes to files with the given extension.

    Note: There is max on number of files you can watch. See:

    http://stackoverflow.com/questions/16748737/grunt-watch-error-waiting-fatal-error-watch-enospc

    License MIT

    Keywords

    Install

    npm i simple-file-watch

    DownloadsWeekly Downloads

    2

    Version

    2.0.1

    License

    MIT

    Last publish

    Collaborators

    • diversen