NSFW

Node Sentinel File Watcher

A super fast and scaleable file watcher that provides a consistent interface on Linux, OSX and Windows

NSFW is an open-source native abstraction for Linux, Windows, and OSX file watching services created by GitKraken developers. NSFW tries to keep a consistent interface and feature set across operating systems, and offers recursive file watching into deep file systems all at no additional cost to the JavaScript layer.

In Linux, NSFW recursively builds an inotify watch tree natively, which collects events concurrently to the JavaScript thread. In OSX, NSFW utilizes the FSEventsService, which recursively watches for file system changes in a specified directory. In Windows, NSFW implements a server around the ReadDirectoryChangesW method.

NSFW has a consistent and minimal footprint in the JavaScript layer, manages recursive watching for you, and is super easy to use.

How to install:

$ npm install nsfw --save

For more information and usage, find it at:

 NSFW on GitHub