Newts Parading Majestically
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    peeperpublic

    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

    Keywords

    none

    install

    npm i peeper

    Downloadsweekly downloads

    3

    version

    0.1.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar