Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
stalk app in node.js for custom file watching...
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
tests
.gitignore
LICENSE
README.md
app.js
package.json

README.md

What is it???

Essentially stalk-it is a directory watcher, but with very simple interface.

Where to use it

It is invaluable, where you just need some folders/files to be watched over for their changes.

This little app just do that but with a simple command, or a mere JSON configuration file.

Usage

For a brief details you could just run it --help option.

Configuration

  1. basic form - It is also the basic building block of the configuration
    { "src": "<source>", "dest": "<destination>" }
  1. multi-source form - an array of basic config
    [ { "src": "<source>", "dest": "<destination>" }, ... ]
  1. extended form - form with configurable root
    { 
        "root": { "src": "<root-source>", "dest": "<root-destination>" },
        "stalkers": [ { "src": "<source>", "dest": "<destination>" }, ... ]
    }
  1. extended-basic form - same as extended form but basic form replaces stalkers with basic configuration
    {
        "root": { "src": "<root-source>", "dest": "<root-destination>" },
        "stalkers": { "src": "<source>", "dest": "<destination>" }
    }
  1. multi-extended form - an array of extended form or extended-basic form
    {
        "root": { "src": "<root-source>", "dest": "<root-destination>" }, 
        "stalkers": { 
            "root": { "src": "<sub-root-source>", "dest": "<sub-root-destination>" }, 
            "stalkers": ... 
        }
    }

or

    {
        "root": { "src": "<root-source>", "dest": "<root-destination>" }, 
        "stalkers": [{ 
            "root": { "src": "<sub-root-source>", "dest": "<sub-root-destination>" }, 
            "stalkers": ... 
        },{
            ...
        }] 
    }
  1. n-Xtended form - nested form of any of the above (figure it yourself)
Something went wrong with that request. Please try again.