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

x/crayon/src/util.ts>replaceAll

🖍️ Terminal styling done light and fast.
Latest
function replaceAll
import { replaceAll } from "https://deno.land/x/crayon@3.3.3/src/util.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