{"_id":"@aoberoi/chokidar-cli","_rev":"5-6850a062baf481f0a43d3455bf5064a2","name":"@aoberoi/chokidar-cli","description":"Ultra-fast cross-platform command line utility to watch file system changes.","dist-tags":{"latest":"2.0.0"},"versions":{"1.3.0":{"name":"@aoberoi/chokidar-cli","description":"Ultra-fast cross-platform command line utility to watch file system changes.","version":"1.3.0","keywords":["fs","watch","watchFile","watcher","watching","file","fsevents","chokidar","cli","command","shell","bash"],"bin":{"chokidar":"./index.js"},"homepage":"https://github.com/aoberoi/chokidar-cli","author":{"name":"Kimmo Brunfeldt","email":"kimmobrunfeldt@gmail.com","url":"http://kimmobrunfeldt.github.io/"},"contributors":[{"name":"Ankur Oberoi","email":"aoberoi@gmail.com","url":"https://aoberoi.me"}],"repository":{"type":"git","url":"git+https://github.com/aoberoi/chokidar-cli.git"},"bugs":{"url":"http://github.com/aoberoi/chokidar-cli/issues"},"license":"MIT","dependencies":{"anymatch":"^1.1.0","bluebird":"^2.9.24","chokidar":"^1.0.1","lodash":"^3.7.0","npm-run-all":"1.6.0","shell-quote":"^1.4.3","yargs":"^3.7.2"},"devDependencies":{"commander":"^2.8.0","mocha":"^2.2.4","mustache":"^2.0.0","releasor":"^1.2.1","semver":"^4.3.3","shelljs":"^0.4.0","string":"^3.1.1"},"scripts":{"test":"mocha"},"gitHead":"eae26694fe17f83e8556bc4e139ddeecf9286b9e","_id":"@aoberoi/chokidar-cli@1.3.0","_shasum":"b8d62feea3e0ee2c4c29eb3dc05685a9157e4bb7","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"aoberoi","email":"aoberoi@gmail.com"},"dist":{"shasum":"b8d62feea3e0ee2c4c29eb3dc05685a9157e4bb7","tarball":"https://registry.npmjs.org/@aoberoi/chokidar-cli/-/chokidar-cli-1.3.0.tgz","integrity":"sha512-3X41IGskjU/UdqTXhoeKAKQESrc/d6k51kOymwgRyBBfs/hof33DvqaVpyZikCmvvM0t5O3oRQPRmX+J1Mrj2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFT6p0IVrsYEuEsVt2qeaPq9evrOoOO6ue2xsTebHrmnAiEAoflxYQ+BnXafQ7PoeEIyzM8foUFZnSqwSQm/IK2R750="}]},"maintainers":[{"name":"aoberoi","email":"aoberoi@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/chokidar-cli-1.3.0.tgz_1461265572909_0.49571188632398844"},"directories":{}},"2.0.0":{"name":"@aoberoi/chokidar-cli","description":"Ultra-fast cross-platform command line utility to watch file system changes.","version":"2.0.0","keywords":["fs","watch","watchFile","watcher","watching","file","fsevents","chokidar","cli","command","shell","bash"],"bin":{"chokidar":"./index.js"},"homepage":"https://github.com/aoberoi/chokidar-cli","author":{"name":"Ankur Oberoi","email":"aoberoi@gmail.com","url":"https://aoberoi.me"},"contributors":[{"name":"Kimmo Brunfeldt","email":"kimmobrunfeldt@gmail.com","url":"http://kimmobrunfeldt.github.io/"}],"repository":{"type":"git","url":"git+https://github.com/aoberoi/chokidar-cli.git"},"bugs":{"url":"http://github.com/aoberoi/chokidar-cli/issues"},"license":"MIT","dependencies":{"anymatch":"^1.1.0","bluebird":"^2.9.24","chokidar":"^1.0.1","lodash.debounce":"^4.0.8","lodash.throttle":"^4.1.1","npm-run-all":"4.1.5","yargs":"^3.7.2"},"devDependencies":{"mocha":"^5.2.0","mocha-junit-reporter":"^1.18.0"},"scripts":{"test":"mocha"},"gitHead":"4c3b36caf2511f256b407bd27b0d23dc15112159","_id":"@aoberoi/chokidar-cli@2.0.0","_npmVersion":"6.5.0","_nodeVersion":"10.14.2","_npmUser":{"name":"aoberoi","email":"aoberoi@gmail.com"},"dist":{"integrity":"sha512-wV8j8h5n/SxBeXPNFKGL40ljybg1mkyclmyv1TqpwUf422So9NKuM7li4d+Ak5/aJkvy9NvrbRs+iS6UYZUHgQ==","shasum":"4f0ec1b3366e4095af60ded3896f2b992a81a0ae","tarball":"https://registry.npmjs.org/@aoberoi/chokidar-cli/-/chokidar-cli-2.0.0.tgz","fileCount":14,"unpackedSize":27998,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcIZN1CRA9TVsSAnZWagAA6n0P/3foG1eCCmDoei2HdbRl\nZmxLBZ5Z06ErQ3jwKOij62IWQqByqvbDPUAgugRRCElzZEU+ukkdCH7INvHX\njI3OQHCwdmscTov+umgEcymLuGs7Q2mDIKulKo9Do8HiWg8X9+HR/ooVAbnP\nySV1CVWV4FpEercmyiGBXGLbGeFECqPyCl/U81fS932sX8mPyVWjnHOhx+BA\n5TWPZq+bO2m2IDkYQhutY417/bA1TAL/FIFMAQH/JIjqfp2RJaAPxxsimZPC\nFPXksgkNCmv7XlTdGay4nvjb2kIQ1KNwmL3uEou7QQMCWL7pjDwlko2mVl30\n/ZCwZL+54KsfPuEBxlPJ/MBr+f33X0x2SpBftxqTZHBOK9wC9bBxxD2aQ4yl\nBLgsd+KE+YXPZETeYPTb6XuuanJpQak9bBrMHJ9L7wqAmwOaOzJsXhpUbHQ+\nOQkS+3TPhrPfihtli+6DrKylySp8xv7rG/rADd1mYs5y9Ygvn5HMy/JuniRR\njrkDJNGdGLOwy+y+sR3FC+fdthoWiA/CC8MTvUXAYau3P78eNRga3pcqPH/M\ngy8yIGIwq/KpEVPJR/9enfKqJCpMVOloMr1dOHIoSvEVA7nq3YharVrP4Zov\nwLMmvtwjYQipb3Fz/P0NqTwkZA5WVyvUxp6wR7LIdo81ujPGHcXZBpxin+1H\nAdLK\r\n=G9Rq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICSJT+dRd2JhNFSdkgP88ZuX+049S7K//Hh/zGCMuIS2AiEA1Yg98ZiLjbhya+ZCXiWi9+87PW6LAY9+xvAEvS4e5kI="}]},"maintainers":[{"name":"aoberoi","email":"aoberoi@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chokidar-cli_2.0.0_1545704309321_0.5088587236816404"},"_hasShrinkwrap":false}},"readme":"# Chokidar CLI\n\n[![Build Status](https://travis-ci.org/aoberoi/chokidar-cli.svg?branch=master)](https://travis-ci.org/aoberoi/chokidar-cli)\n[![Build Status](https://dev.azure.com/aoberoi/chokidar-cli/_apis/build/status/aoberoi.chokidar-cli?branchName=master)](https://dev.azure.com/aoberoi/chokidar-cli/_build/latest?definitionId=1?branchName=master)\n\nFast cross-platform command line utility to watch file system changes.\n\nThe underlying watch library is [Chokidar](https://github.com/paulmillr/chokidar), which is one of the best watch\nutilities for Node. Chokidar is battle-tested.\n\n## Install\n\nIf you need it only with NPM scripts:\n\n```bash\nnpm install @aoberoi/chokidar-cli\n```\n\nOr globally\n\n```bash\nnpm install -g @aoberoi/chokidar-cli\n```\n\n## Usage\n\nBy default `chokidar` streams changes for all patterns to stdout:\n\n```bash\n$ chokidar '**/*.js' '**/*.less'\nchange:test/dir/a.js\nchange:test/dir/a.less\nadd:test/b.js\nunlink:test/b.js\n```\n\nEach change is represented with format `event:relativepath`. Possible events: `add`, `unlink`, `addDir`, `unlinkDir`,\n`change`.\n\n**Output only relative paths on each change**\n\n```bash\n$ chokidar '**/*.js' '**/*.less' | cut -d ':' -f 2-\ntest/dir/a.js\ntest/dir/a.less\ntest/b.js\ntest/b.js\n```\n\n**Run *npm run build-js* whenever any .js file changes in the current work directory tree**\n\n```chokidar '**/*.js' -c 'npm run build-js'```\n\n**Watching in network directories must use polling**\n\n```chokidar '**/*.less' -c 'npm run build-less' --polling```\n\n**Pass the path and event details in to your custom command**\n\n```chokidar '**/*.less' -c 'if [ \"{event}\" = \"change\" ]; then npm run build-less -- {path}; fi;'```\n\n**Detailed help**\n\n```\nUsage: chokidar <pattern> [<pattern>...] [options]\n\n<pattern>:\nGlob pattern to specify files to be watched.\nMultiple patterns can be watched by separating patterns with spaces.\nTo prevent shell globbing, write pattern inside quotes.\nGuide to globs: https://github.com/isaacs/node-glob#glob-primer\n\n\nOptions:\n  -c, --command           Command to run after each change. Needs to be\n                          surrounded with quotes when command contains spaces.\n                          Instances of `{path}` or `{event}` within the command\n                          will be replaced by the corresponding values from the\n                          chokidar event.\n  -d, --debounce          Debounce timeout in ms for executing command\n                                                                  [default: 400]\n  -t, --throttle          Throttle timeout in ms for executing command\n                                                                  [default: 0]\n  -s, --follow-symlinks   When not set, only the symlinks themselves will be\n                          watched for changes instead of following the link\n                          references and bubbling events through the links path\n                                                      [boolean] [default: false]\n  -i, --ignore            Pattern for files which should be ignored. Needs to be\n                          surrounded with quotes to prevent shell globbing. The\n                          whole relative or absolute path is tested, not just\n                          filename. Supports glob patters or regexes using\n                          format: /yourmatch/i\n  --initial               When set, command is initially run once\n                                                      [boolean] [default: false]\n  --concurrent            When set, command is not killed before invoking again\n                                                      [boolean] [default: false]\n  -p, --polling           Whether to use fs.watchFile(backed by polling) instead\n                          of fs.watch. This might lead to high CPU utilization.\n                          It is typically necessary to set this to true to\n                          successfully watch files over a network, and it may be\n                          necessary to successfully watch files in other non-\n                          standard situations         [boolean] [default: false]\n  --poll-interval         Interval of file system polling. Effective when --\n                          polling is set                          [default: 100]\n  --poll-interval-binary  Interval of file system polling for binary files.\n                          Effective when --polling is set         [default: 300]\n  --verbose               When set, output is more verbose and human readable.\n                                                      [boolean] [default: false]\n  --silent                When set, internal messages of chokidar-cli won't be\n                          written.                    [boolean] [default: false]\n  -h, --help              Show help                                    [boolean]\n  -v, --version           Show version number                          [boolean]\n\nExamples:\n  chokidar \"**/*.js\" -c \"npm run build-js\"  build when any .js file changes\n  chokidar \"**/*.js\" \"**/*.less\"            output changes of .js and .less\n                                            files\n```\n\n## Acknowledgements\n\nThanks to [Kimmo Brunfeldt](https://github.com/kimmobrunfeldt) for starting this project and taking it very far. I\nmaintained a temporary fork in order to land a feature that wasn't making any progress until December 2018, at which\npoint I decided to take the \"temporary\" label off. This project wouldn't be possible without all the contributors on\nthe original project.\n","maintainers":[{"name":"aoberoi","email":"aoberoi@gmail.com"}],"time":{"modified":"2022-06-12T14:43:25.745Z","created":"2016-04-21T19:06:15.419Z","1.3.0":"2016-04-21T19:06:15.419Z","2.0.0":"2018-12-25T02:18:29.479Z"},"homepage":"https://github.com/aoberoi/chokidar-cli","keywords":["fs","watch","watchFile","watcher","watching","file","fsevents","chokidar","cli","command","shell","bash"],"repository":{"type":"git","url":"git+https://github.com/aoberoi/chokidar-cli.git"},"contributors":[{"name":"Kimmo Brunfeldt","email":"kimmobrunfeldt@gmail.com","url":"http://kimmobrunfeldt.github.io/"}],"author":{"name":"Ankur Oberoi","email":"aoberoi@gmail.com","url":"https://aoberoi.me"},"bugs":{"url":"http://github.com/aoberoi/chokidar-cli/issues"},"license":"MIT","readmeFilename":"README.md"}