Skip to main content
Module

x/crayon/mod.ts>replaceAll

🖍️ Terminal styling done light and fast.
Go to Latest
function replaceAll
Re-export
import { replaceAll } from "https://deno.land/x/crayon@3.1.1/mod.ts";

Faster¹ alternative to String.prototype.replaceAll

¹ - it might be slower/on pair when strings are unusually long

Parameters

string: string
  • string which will be modified
replaceValue: string
  • string which replaces search