Skip to main content
Module

x/mod/utils.ts>writeFileSec

Simple Command Line Interface to create Deno module entrypoints, CI, config and more.
Latest
function writeFileSec
import { writeFileSec } from "https://deno.land/x/mod@v2.3.9/utils.ts";

Responsible for writing data to a file, but instead of overwriting by default it gives a warning if the file already exists.

If force: true is passed, the file will be (over)written in any case.

Parameters

path: string | URL
data: Uint8Array
optional
options: WriteFileSecOptions

Returns

Promise<void>