Socket
Socket
Sign inDemoInstall

glob-watcher

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glob-watcher - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0

5

package.json
{
"name": "glob-watcher",
"version": "4.0.0",
"version": "5.0.0",
"description": "Watch globs and execute a function upon change, with intelligent defaults for debouncing and queueing.",

@@ -25,3 +25,3 @@ "author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",

"async-done": "^1.2.0",
"chokidar": "^1.4.3",
"chokidar": "^2.0.0",
"just-debounce": "^1.0.0",

@@ -41,2 +41,3 @@ "object.defaults": "^1.1.0"

"mocha-lcov-reporter": "^1.2.0",
"normalize-path": "^2.1.1",
"rimraf": "^2.6.1",

@@ -43,0 +44,0 @@ "through2": "^2.0.1"

14

README.md

@@ -55,4 +55,6 @@ <p align="center">

Takes a path string, an array of path strings, a [glob][node-glob] string or an array of [glob][node-glob] strings as `globs` to watch on the filesystem. Also optionally takes `options` to configure the watcher and a `fn` to execute when a file changes.
Takes a path string, an array of path strings, a [glob][micromatch] string or an array of [glob][micromatch] strings as `globs` to watch on the filesystem. Also optionally takes `options` to configure the watcher and a `fn` to execute when a file changes.
__Note: As of 5.0.0, globs must use `/` as the separator character because `\\` is reserved for escape sequences (as per the Bash 4.3 & Micromatch specs). This means you can't use `path.join()` or `__dirname` in Windows environments. If you need to use `path.join()`, you can use [normalize-path][normalize-path] against your paths afterwards. If you need to use `__dirname`, you can set it as the `cwd` option that gets passed directly to [chokidar][chokidar]. The [micromatch docs][micromatch-backslashes] contain more information about backslashes.__
Returns an instance of [chokidar][chokidar].

@@ -116,2 +118,8 @@

[micromatch]: https://github.com/micromatch/micromatch
[normalize-path]: https://www.npmjs.com/package/normalize-path
[micromatch-backslashes]: https://github.com/micromatch/micromatch#backslashes
[async-completion]: https://github.com/gulpjs/async-done#completion-and-error-resolution
[chokidar]: https://github.com/paulmillr/chokidar
[downloads-image]: http://img.shields.io/npm/dm/glob-watcher.svg

@@ -132,5 +140,1 @@ [npm-url]: https://npmjs.com/package/glob-watcher

[gitter-image]: https://badges.gitter.im/gulpjs/gulp.png
[node-glob]: https://github.com/isaacs/node-glob
[async-completion]: https://github.com/gulpjs/async-done#completion-and-error-resolution
[chokidar]: https://github.com/paulmillr/chokidar
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc