#!/usr/bin/env node; /****************************************************************************** * This program simply copies an input stream to the console line by line. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ const Utils = require('./Utils'); const main = async () => { let line; while ((line = await Utils.getline(process.stdin)) !== undefined) { console.log(line); } } main().catch( e => { console.error(e) } );