UNPKG

@builder.io/mitosis

Version:

Write components once, run everywhere. Compiles to Vue, React, Solid, and Liquid. Import code from Figma and Builder.io

8 lines (7 loc) 231 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indent = void 0; function indent(str, spaces = 4) { return str.replace(/\n([^\n])/g, `\n${' '.repeat(spaces)}$1`); } exports.indent = indent;