fs.notify
Version:
file change notification that doesn't suck hairy monkey balls and just works.
17 lines (12 loc) • 486 B
Markdown
- Add full path argument to those passed to notification callback.
- Compare time based on their numeric value, a regular compare.
- Prevent duplicate listeners from being added by expanding paths
- Remove all listeners when we are closing to prevent duplicate events
- Remove fs stat information from the callback, they are pointless as the file
could already have changed when we emit this event.
- Initial release \o/