node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


read text-based log files


reader = LogReader(filename)

Initialize a log reader given the specified filename., depth)

Start to read the log into a stream. depth allows you to stream less than all of the log. Calls callback with err, path.

var reader = new LogReader(options.log).read();
return function(cb) {, path) {
        if (err) throw err;
        return cb(formatter(path));