A class and functions to quickly write a loop over standard input or a list of files for Node.JS