0.0.3 • Published 1 year ago
@joelact/node-tail v0.0.3
node-tail
Simple implementation of tail command. Only option available for now is reading n lines from a file.
Example
const Tail = require('@joelact/node-tail');
const tail = new Tail('/tmp/file.log', { encoding: 'utf8' });
const lines = await tail.readLines(10);
console.log(lines);