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

x/apex_core/blockstring.ts

JavaScript / Node.js support for the Apex language
Latest
import * as apexCore from "https://deno.land/x/apex_core@v0.1.5/blockstring.ts";

Functions

Produces the value of a block string from its parsed raw value, similar to CoffeeScript's block string, Python's docstring trim or Ruby's strip_heredoc.

Print a block string in the indented block form by adding a leading and trailing blank line. However, if a block string starts with whitespace and is a single-line, adding a leading blank line would strip that whitespace.