paulmillr/chokidar — pull request #126 by rondale-sc (2014-05-23 18:05:43+00:00)
Title: Update createFSEventsInstance to use fsevents start()

The reasons for this change are better explained in #125.

I'm not in love with the idea of referencing a specific sha, but since it's an optionalDependency and there is already a [check](https://github.com/paulmillr/chokidar/blob/master/index.js#L66) to ensure it was loaded and requireable before it can be used I don't see too much harm in it.

Also, it can be switched to the v0.2.1 as soon as fsevents pushes its next release.

The test script included in the issue was satisfied by the changes in this PR. However, it needs set the `persistent: true` in order to live monitor the events (this was likely a typo when I saved it to the gist).

I've updated it [here](https://gist.github.com/rondale-sc/75f5bf2067ce0784df52).

:)