chokidar-cli
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "chokidar-cli", | ||
"description": "Ultra-fast cross-platform command line utility to watch file system changes.", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"keywords": [ | ||
@@ -33,6 +33,6 @@ "fs", | ||
"dependencies": { | ||
"bluebird": "3.5.1", | ||
"chokidar": "2.0.4", | ||
"lodash": "4.17.10", | ||
"yargs": "12.0.1" | ||
"bluebird": "3.5.3", | ||
"chokidar": "2.1.1", | ||
"lodash": "4.17.11", | ||
"yargs": "12.0.5" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
@@ -38,6 +38,21 @@ # Chokidar CLI | ||
Chokidar can be invoked using the `chokidar` command, without the `-cli` suffix. | ||
Arguments use the form of runtime flags with string parameters, delimited by quotes. While in principal both single and double quotes are supported by `chokidar-cli`, the actual command line argument parsing is dependent on the operating system and shell used; for cross-platform compatibility, use double quotes (with escaping, if necessary), as single quotes are not universally supported by all operating systems. | ||
This is particularly important when using chokidar-cli for run scripts specified in `package.json`. For maximum platform compatibility, make sure to use escaped double quotes around chokidar's parameters: | ||
``` | ||
"run": { | ||
"chokidar": "chokidar \"**/*.js\" -c \"...\"", | ||
... | ||
}, | ||
``` | ||
## Default behavior | ||
By default `chokidar` streams changes for all patterns to stdout: | ||
```bash | ||
$ chokidar '**/*.js' '**/*.less' | ||
$ chokidar "**/*.js" "**/*.less" | ||
change:test/dir/a.js | ||
@@ -54,3 +69,3 @@ change:test/dir/a.less | ||
```bash | ||
$ chokidar '**/*.js' '**/*.less' | cut -d ':' -f 2- | ||
$ chokidar "**/*.js" "**/*.less" | cut -d ":" -f 2- | ||
test/dir/a.js | ||
@@ -64,11 +79,11 @@ test/dir/a.less | ||
```chokidar '**/*.js' -c 'npm run build-js'``` | ||
```chokidar "**/*.js" -c "npm run build-js"``` | ||
**Watching in network directories must use polling** | ||
```chokidar '**/*.less' -c 'npm run build-less' --polling``` | ||
```chokidar "**/*.less" -c "npm run build-less" --polling``` | ||
**Pass the path and event details in to your custom command** | ||
```chokidar '**/*.less' -c 'if [ "{event}" = "change" ]; then npm run build-less -- {path}; fi;'``` | ||
```chokidar "**/*.less" -c "if [ '{event}' = 'change' ]; then npm run build-less -- {path}; fi;"``` | ||
@@ -75,0 +90,0 @@ **Detailed help** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
16903
146
1
+ Addedbluebird@3.5.3(transitive)
+ Addedcamelcase@5.3.1(transitive)
+ Addedchokidar@2.1.1(transitive)
+ Addedcross-spawn@6.0.5(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedexeca@1.0.0(transitive)
+ Addedget-stream@4.1.0(transitive)
+ Addedinvert-kv@2.0.0(transitive)
+ Addedlcid@2.0.0(transitive)
+ Addedlodash@4.17.11(transitive)
+ Addedmap-age-cleaner@0.1.3(transitive)
+ Addedmem@4.3.0(transitive)
+ Addedmimic-fn@2.1.0(transitive)
+ Addednice-try@1.0.5(transitive)
+ Addednormalize-path@3.0.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedos-locale@3.1.0(transitive)
+ Addedp-defer@1.0.0(transitive)
+ Addedp-is-promise@2.1.0(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedyargs@12.0.5(transitive)
+ Addedyargs-parser@11.1.1(transitive)
- Removedbluebird@3.5.1(transitive)
- Removedcamelcase@4.1.0(transitive)
- Removedchokidar@2.0.4(transitive)
- Removedcross-spawn@5.1.0(transitive)
- Removeddecamelize@2.0.0(transitive)
- Removedexeca@0.7.0(transitive)
- Removedget-stream@3.0.0(transitive)
- Removedinvert-kv@1.0.0(transitive)
- Removedlcid@1.0.0(transitive)
- Removedlodash@4.17.10(transitive)
- Removedlodash.debounce@4.0.8(transitive)
- Removedlru-cache@4.1.5(transitive)
- Removedmem@1.1.0(transitive)
- Removedmimic-fn@1.2.0(transitive)
- Removedos-locale@2.1.0(transitive)
- Removedpseudomap@1.0.2(transitive)
- Removedxregexp@4.0.0(transitive)
- Removedyallist@2.1.2(transitive)
- Removedyargs@12.0.1(transitive)
- Removedyargs-parser@10.1.0(transitive)
Updatedbluebird@3.5.3
Updatedchokidar@2.1.1
Updatedlodash@4.17.11
Updatedyargs@12.0.5