Release 1.0.0
v1.0.0 includes breaking changes.
Tail constructor now takes a mandatory file name and an optional map with extra optional parameters.
available options:
fileToTailis the name (inclusive of the path) of the file to tailoptionsis a hash. The following keys are accepted:lineSeparator: the line separator token (default /[\r]{0,1}\n/ to handle linux/mac (9+)/windows)watchOptions: the full set of options that can be passed tofs.watchas per node documentation (default: {})fromBeginning: forces the tail of the file from the very beginning of it instead of from the first new line that will be appended (default:false)follow: simulatetail -Foption. In the case the file is moved/renamed (or logrotated) if set totruetailwill try to start tailing again after a 1 second delay, if set tofalseit will just emit an error event (default:true)