UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

24 lines (23 loc) 480 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.stripIndents = stripIndents; /** * Removes indents, which is useful for printing warning and messages. * * Example: * * ```typescript * stripIndents` * Options: * - option1 * - option2 * ` * ``` */ function stripIndents(strings, ...values) { return String.raw(strings, ...values) .split('\n') .map((line) => line.trim()) .join('\n') .trim(); }