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

x/actionify/mod.ts>e.format

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
function e.format
import { e } from "https://deno.land/x/actionify@0.3.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>>