nodejs-tail
Simple NodeJs implementation of tail command.
Install
yarn add nodejs-tail
Syntax
new Tail(filename, options)
- filename - file to watch
- options - chokidar watcher options, with hard coded next values:
{ alwaysStat: true, ignoreInitial: false, persistent: true, }
Example
const Tail = ; const filename = 'some.log';const tail = filename; tail tail tail; ;
MIT License. Copyright (c) 2017-2020 Vladimir Kuznetsov