Skip to main content
Module

x/actionify/mod.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/mod.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>>