Skip to main content
Module

x/dtils/mod.ts>readBytes

The best unofficial library of utilities for Deno applications
Go to Latest
function readBytes
Re-export
import { readBytes } from "https://deno.land/x/dtils@2.4.0/mod.ts";

Read a file as a Uint8Array. Returns null if the file doesn't exist

Parameters

file: string

Returns

Promise<Uint8Array | null>