graphile-migrate
Version:
Opinionated SQL-powered migration tool for PostgreSQL
10 lines • 399 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function indent(text, indentStringOrSpaces) {
const indentString = typeof indentStringOrSpaces === "string"
? indentStringOrSpaces
: " ".repeat(indentStringOrSpaces);
return indentString + text.replace(/\n(?!$)/g, "\n" + indentString);
}
exports.default = indent;
//# sourceMappingURL=indent.js.map