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://dotland.deno.dev/x/denoify@v0.13.0/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>