Options
All
  • Public
  • Public/Protected
  • All
Menu

Antfarm

antfarm

Antfarm is a simple automation framework that aims to make file automation robust and scalable. 🐜

Build Status Coverage Status npm version Dependancy Status Gitter

Usage

$ npm install antfarm
var Antfarm = require('antfarm'),
   af = new Antfarm();

var hotfolder_a = af.createFolderNest("/var/hotfolders/a");
var pdf_folder = af.createFolderNest("/var/out/pdf");
var other_folder = af.createFolderNest("/var/out/others");

var tunnel = af.createTunnel("Simple pdf sorting workflow");

tunnel.watch(hotfolder_a);

tunnel.run(function(job, nest){
    if(job.getExtension() == "pdf"){
        job.move(pdf_folder);
    } else {
        job.move(other_folder);
    }
});

Wiki

https://github.com/dominickp/antfarm/wiki

API Reference

https://dominickp.github.io/antfarm

Generated using TypeDoc