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

x/drake/lib/utils.ts>updateFile

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

Find and replace in text file synchronously. If the file contents is unchanged return false. If the contents has changed write it to the file and return true.

Parameters

filename: string
find: RegExp
replace: string

Returns

boolean