Skip to main content
Module

x/drake/lib.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.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