peeper

0.1.0 • Public • Published

peeper

Peeper works like an FS watcher, only it doesn't break when inotify isn't available (or is overloaded)

It currently uses polling only with a customizable interval.

You may watch files and directories whether they exist or not.

peeper.watch(filename, [options], [listener])

Returns an object implementing the FSWatcher interface from node core. Only change events are emitted. This function will not throw an error.

Options are defaulted to {persistent: true, interval: 2003} which says that the process will stay alive as long as the watcher is active, and files will be polled for changes ever 2003ms.

Listener is a callback automatically attached to the watcher change event

Readme

Keywords

none

Package Sidebar

Install

npm i peeper

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • supershabam