Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/windmill/node_modules/denoify/tools/replaceAsync.d.ts>replaceAsync

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
function replaceAsync
import { replaceAsync } from "https://deno.land/x/windmill@v1.265.1/node_modules/denoify/tools/replaceAsync.d.ts";

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

Parameters

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

Returns

Promise<string>