Skip to content

Simple implementation of tail command. Only option available for now is reading n lines from a file.

License

Notifications You must be signed in to change notification settings

joelact/node-tail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Simple implementation of tail command. Only option available for now is reading n lines from a file.

Resources

License

Stars

Watchers

Forks

Packages

No packages published