Simple file processing, and aging system.
- Monitor method is run
- A file is added to the directory the monitor is watching
- The file is read and processed
- The file is moved to a archive directory after processing
- The archived file is eventually aged off.
npm install process-and-monitor-files --save
import ProcessFiles from "process-and-monitor-files";
const processFiles = new ProcessFiles({
// options ...
});