Socket
Socket
Sign inDemoInstall

chokidar

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chokidar - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

index.js

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# Chokidar 0.8.1 (16 December 2013)
* Optional deps are now truly optional on windows and
linux.
* Rewritten in JS, again.
* Fixed some FSEvents-related bugs.
# Chokidar 0.8.0 (29 November 2013)

@@ -2,0 +8,0 @@ * Added ultra-fast low-CPU OS X file watching with FSEvents.

12

package.json
{
"name": "chokidar",
"description": "A neat wrapper around node.js fs.watch / fs.watchFile.",
"version": "0.8.0",
"version": "0.8.1",
"keywords": [

@@ -27,12 +27,6 @@ "fs",

],
"main": "./lib/index",
"scripts": {
"prepublish": "node setup.js prepublish",
"postpublish": "node setup.js postpublish",
"test": "node setup.js test"
"test": "./node_modules/.bin/mocha",
"postinstall": "node setup-deps.js"
},
"optionalDependencies": {
"recursive-readdir": "0.0.2",
"fsevents": "0.1.6"
},
"devDependencies": {

@@ -39,0 +33,0 @@ "mocha": "~1.7.3",

@@ -19,6 +19,2 @@ # Chokidar

Other node.js file watching solutions:
* Super-slow / unreliable on OS X because they are using default node.js APIs
Chokidar resolves these problems.

@@ -65,3 +61,3 @@

// One-liner
require('chokidar').watch('.', {ignored: /^\./}).on('all', function(event, path) {
require('chokidar').watch('.', {ignored: /[\/\\]\./}).on('all', function(event, path) {
console.log(event, path);

@@ -89,7 +85,5 @@ });

polling for binary files (see extensions in src/is-binary).
* `options.usePolling` (default: `false`). Whether to use fs.watchFile
* `options.usePolling` (default: `false` on Linux and Windows, `true` on OS X). Whether to use fs.watchFile
(backed by polling), or fs.watch. If polling leads to high CPU utilization,
consider setting this to `false`.
On OS X chokidar uses internal FSEvents API for watching files
instead of `fs.watch`.

@@ -96,0 +90,0 @@ `chokidar.watch()` produces an instance of `FSWatcher`. Methods of `FSWatcher`:

Sorry, the diff of this file is not supported yet

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