UNPKG
tail-forever
Version:
latest (0.3.16)
0.3.16
0.3.15
0.3.14
0.3.13
0.3.12
0.3.11
0.3.10
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.0
a node.js library to implement tail -F
github.com/mingqi/tailF
mingqi/tailF
tail-forever
/
test
/
test.coffee
15 lines
(11 loc)
•
238 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Tail = require
'../tail-forever.coffee'
options =
"start"
:
0
"maxSize"
:
52428800
"bufferSize"
:
1048576
"encoding"
:
"utf-8"
# "maxLineSize" : 10
f =
'./test.log'
t =
new
Tail(f, options) t.
on
'line'
, (line) -> console.log line