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

x/crayon/src/util.ts>replace

🖍️ Terminal styling done light and fast.
Latest
function replace
import { replace } from "https://deno.land/x/crayon@3.3.3/src/util.ts";

Faster alternative to String.prototype.replace

Parameters

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

Returns

string