We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac894be commit 41337c5Copy full SHA for 41337c5
n-readlines/README.md
@@ -23,10 +23,10 @@ import LineByLine from 'n-readlines'
23
const fname = process.argv[2]
24
const reader = new LineByLine(fname)
25
26
-let line = ''
+let buf
27
28
-while (line = reader.next()) {
29
- console.log(line.toString('utf8'))
+while (buf = reader.next()) {
+ console.log(buf.toString('utf8'))
30
}
31
```
32
n-readlines/src/index.js
@@ -3,8 +3,8 @@ import LineByLine from 'n-readlines'
3
4
5
6
7
8
9
10
0 commit comments