Skip to main content
Module

x/aleph/server/deps.ts>MagicString#replace

The Full-stack Framework in Deno.
Very Popular
Go to Latest
method MagicString.prototype.replace
import { MagicString } from "https://deno.land/x/aleph@1.0.0-beta.1/server/deps.ts";

String replacement with RegExp or string.

Parameters

regex: RegExp | string
replacement: string | ((substring: string, ...args: any[]) => string)