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

x/drake/lib/utils.ts>writeFile

Drake is a make-like task runner for Deno.
Latest
function writeFile
import { writeFile } from "https://deno.land/x/drake@v1.7.0/lib/utils.ts";

Write text to a file synchronously. If the file exists it will be overwritten. Returns true if a new file was created. Returns false if the file already exists.

Parameters

filename: string
text: string

Returns

boolean