Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/denoify/src/tools/replaceAsync.ts>replaceAsync

🦕For NPM module authors that would like to support Deno but do not want to write and maintain a port.
Go to Latest
function replaceAsync
import { replaceAsync } from "https://deno.land/x/denoify@v1.5.2/src/tools/replaceAsync.ts";

Equivalent of String.prototype.replace but with async replacer is async

Parameters

str: string
regex: RegExp
replacerAsync: (str: string, ...args: any[]) => Promise<string>