Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hono/adapter/deno/deno.d.ts>Deno.writeFile

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
function Deno.writeFile
import { Deno } from "https://deno.land/x/hono@v4.0.10/adapter/deno/deno.d.ts";
const { writeFile } = Deno;

Write a new file, with the specified path and data.

Parameters

path: string

The path to the file to write.

data: Uint8Array

The data to write to the file.

Returns

Promise<void>

A promise that resolves when the file is written.