mirror of
https://github.com/seigler/rockstar-playground
synced 2025-07-27 01:36:10 +00:00
running rockstar on input
This commit is contained in:
commit
0f5c35af68
24 changed files with 536 additions and 0 deletions
14
node_modules/n-readlines/example.js
generated
vendored
Normal file
14
node_modules/n-readlines/example.js
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
'use strict';
|
||||
|
||||
const lineByLine = require('./readlines.js');
|
||||
const liner = new lineByLine('./test/fixtures/normalFile.txt');
|
||||
|
||||
let line;
|
||||
let lineNumber = 0;
|
||||
|
||||
while (line = liner.next()) {
|
||||
console.log('Line ' + lineNumber + ': ' + line.toString('ascii'));
|
||||
lineNumber++;
|
||||
}
|
||||
|
||||
console.log('end of line reached');
|
Loading…
Add table
Add a link
Reference in a new issue