tailed

0.0.2 • Public • Published

tailed

Build Status

under development

example

var tailed = require('tailed');
 
var logFilePath = __dirname + '/logs/development.log';
 
tailed(logFilePath, function(err, tail){
  if(err) { /* error handling code */ }
 
  tail.on('data', function(data){
    console.log(data);
  });
});

note: API is still in flux

things tailed handles

  • any encoding supported by node buffers
  • tailed files getting truncated while being tailed
  • tailed files getting deleted while being tailed (tailed emits error for now)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    3
  • 0.0.1
    2

Package Sidebar

Install

npm i tailed

Weekly Downloads

4

Version

0.0.2

License

none

Last publish

Collaborators

  • brianc