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

x/actionify/src/expressions.ts>format

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
function format
import { format } from "https://deno.land/x/actionify@0.3.0/src/expressions.ts";

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>>