lorenwest/node-config — Issue #15: Make file watching compatible across node versions and OS platforms
Author: lorenwest
Created: 2012-03-01 19:09:42+00:00
State: open

File watching changed between production Node.js versions 0.4.x and 0.6.x. The 0.4.x style is supported in 0.6.x, but only for non-windows machines.

Unfortunately for a package like node-config that has to work between node.js versions as well as across OS platforms, this means poking around to see what file watching paradigm is available on the system in use.

The old-style version is available on windows 0.6.x, but it throws an exception if you try to use it. This probably means looking at version numbers and O/S types vs. function discovery.

At any rate, the issue is to make it work on all versions and all OS platforms.