stalk-it

a stalker that watches over a set of directories and copies the same over place specified

npm install stalk-it
8 downloads in the last month

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>" }
    
  2. multi-source form - an array of basic config

     [ { "src": "<source>", "dest": "<destination>" }, ... ]
    
  3. extended form - form with configurable root

     { 
         "root": { "src": "<root-source>", "dest": "<root-destination>" },
         "stalkers": [ { "src": "<source>", "dest": "<destination>" }, ... ]
     }
    
  4. 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>" }
     }
    
  5. 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": ... 
         },{
             ...
         }] 
     }
    
  6. n-Xtended form - nested form of any of the above (figure it yourself)

npm loves you