Skip to main content
Module

std/node/testdata/binary_stdio.js

Deno standard library
Go to Latest
File
const buffer = new Uint8Array(10);const nread = await Deno.stdin.read(buffer);
if (nread != 10) { throw new Error("Too little data read");}
const nwritten = await Deno.stdout.write(buffer);if (nwritten != 10) { throw new Error("Too little data written");}