Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.6.0/mod.ts";

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

Parameters

file: string

Returns

Promise<Uint8Array | null>