Skip to main content
Module

x/drake/lib.ts>writeFile

Drake is a make-like task runner for Deno.
Go to Latest
function writeFile
import { writeFile } from "https://deno.land/x/drake@v1.6.0/lib.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