std@0.139.0/examples/cat.ts

Deno standard library
GitHub Stars
2214
Go to latest
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.import { copy } from "../streams/conversion.ts";const filenames = Deno.args;for (const filename of filenames) { const file = await Deno.open(filename); await copy(file, Deno.stdout); file.close();}