Skip to main content
Module

x/fluentci/deps.ts>readAllSync

This is the command line interface for FluentCI.
Go to Latest
function readAllSync
import { readAllSync } from "https://deno.land/x/fluentci@v0.12.9/deps.ts";

Synchronously reads ReaderSync r until EOF (null) and returns the content as Uint8Array.

Examples

Example 1

import { readAllSync } from "https://deno.land/std@0.224.0/io/read_all.ts";

// Example from stdin
const stdinContent = readAllSync(Deno.stdin);

// Example from file
using file = Deno.openSync("my_file.txt", {read: true});
const myFileContent = readAllSync(file);

Parameters

reader: ReaderSync

Returns

Uint8Array