stream-tail
Emits the last few chunks of input
Example
const split2 = join = tail = ; // Simple implementation of tail(1) if processargvlength !== 3 console; process; processstdin ;
Methods
tail(count)
Return an object stream that emits no more than the final count
'data'
chunks of its input. Where the input contains fewer than count
chunks, all chunks are emitted.
Install
npm install stream-tail
License
MIT