Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Release 0.2.1.

  • Loading branch information...
commit 3cbf2b1dc28d0eee40d98f0dc9e7ecbb64791ae7 1 parent 7efd243
@paulmillr authored
Showing with 10 additions and 1 deletion.
  1. +3 −0  CHANGELOG.md
  2. +6 −0 README.md
  3. +1 −1  package.json
View
3  CHANGELOG.md
@@ -1,3 +1,6 @@
+# Chokidar 0.2.1 (May 4, 2012)
+* Fixed invalid API bug when using `watch()`.
+
# Chokidar 0.2.0 (May 4, 2012)
* Rewritten in js.
View
6 README.md
@@ -36,6 +36,12 @@ watcher
.on('change', function(path) {console.log('File', path, 'has been changed');})
.on('unlink', function(path) {console.log('File', path, 'has been removed');})
.on('error', function(error) {console.error('Error happened', error);})
+
+watcher.add('new-file');
+watcher.add(['new-file-2', 'new-file-3']);
+
+// Only needed if watching is persistent.
+watcher.close();
```
## API
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "chokidar",
"description": "A neat wrapper around node.js fs.watch / fs.watchFile.",
- "version": "0.2.0",
+ "version": "0.2.1",
"keywords": ["fs", "watch", "watchFile", "watcher", "file"],
"homepage": "https://github.com/paulmillr/chokidar",
"author": "Paul Miller (http://paulmillr.com)",
Please sign in to comment.
Something went wrong with that request. Please try again.