Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/actionify/versions/0.ts>e.format

Create and manage your GitHub workflows with TypeScript and Deno.
Go to Latest
function e.format
import { e } from "https://deno.land/x/actionify@0.2.0/versions/0.ts";
const { format } = e;

Replaces values in the string, with the variable replaceValueN. Variables in the string are specified using the {N} syntax, where N is an integer. You must specify at least one replaceValue and string. There is no maximum for the number of variables (replaceValueN) you can use. Escape curly braces using double braces.

Parameters

stringToFormat: string
...replacements: Array<ExpressionContent<string>>