Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.
Latest
function replaceAsync
import { replaceAsync } from "https://deno.land/x/denoify@v1.6.13/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>