Socket
Book a DemoInstallSign in
Socket

tailed

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailed

evented file tailing (tail -f + EventEmitter)

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 09 Mar 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts