Skip to content

Commit

Permalink
This is not coffee in readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Apr 20, 2012
1 parent 502100c commit ddc3886
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Then just require the package in your code:
```javascript
var chokidar = require('chokidar');

var watcher = chokidar('file or dir', ignored: /^\./);
var watcher = chokidar('file or dir', {ignored: /^\./});

watcher
.on('add', function(path) {console.log('File', path, 'has been added');})
Expand All @@ -42,7 +42,7 @@ watcher
* `constructor`: constructor takes paths to be watched and options.
Right now only `options.ignored` is supported. It's a RegExp or function against
which all added files will be checked. Example that will ignore dotfiles:
`chokidar('file', ignored: /^\./)`
`chokidar('file', {ignored: /^\./})`
* `.add(file / files)`: add directories / files for tracking.
Takes an array of strings (file paths) or just one path.
* `.on(event, callback)`: listen for an FS event.
Expand Down

0 comments on commit ddc3886

Please sign in to comment.