Skip to content

classdojo/fs-tail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fs-tail

Build Status codecov.io NPM version

Streams-based tail -f functionality for node.js.

var FsTail = require("fs-tail");

// Available options - defaults are shown.
var options = {
  start: 0 //Start on byte 0 of file.
  EOFAfter: 500 //emit EOF after 500ms of no data.
};

var tail = FsTail("./someFile.txt", options);
tail.on("EOF", function() {
  console.log("Reached end of file");
});
tail.pipe(anotherStream);

About

tail -f like functionality using streams2 and fs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published