log-reader

0.0.0 • Public • Published

log-reader

API

reader = LogReader(filename)

Initialize a log reader given the specified filename.

reader.read(callback, 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.

Example

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

/log-reader/

    Package Sidebar

    Install

    npm i log-reader

    Weekly Downloads

    4

    Version

    0.0.0

    License

    BSD

    Last publish

    Collaborators

    • mapbox-admin