Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dtils/mod.unstable.ts>writeBytes

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

Write bytes to file. Creates the directory if it doesn't exist

Parameters

file: string
bytes: Uint8Array

Returns

Promise<void>