mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
9 lines
249 B
JavaScript
9 lines
249 B
JavaScript
const highland = require('highland');
|
|
const fs = require('fs');
|
|
|
|
highland(fs.createReadStream('input.txt'))
|
|
.map(line => {
|
|
if (line.length === 0) throw new Error('Empty line');
|
|
return line;
|
|
}).pipe(fs.createWriteStream('output.txt'));
|