Skip to main content
Deno 2 is finally 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@v0.12.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>