#!/usr/bin/env node; /****************************************************************************** * This program simply copies an input stream to the console character by * character like the Unix 'cat' program. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ const Utils = require('./Utils'); const main = async () => { let c; while ((c = await Utils.getchar(process.stdin)) !== undefined) { process.stdout.write(String.fromCodePoint(c)); } } main().catch( e => { console.error(e) } );