@n0safe/indirectus
Version:
Directus Tools CLI.
11 lines • 367 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.comment = comment;
function comment(context, str) {
if (Array.isArray(str)) {
str = str.join("\n").replace(/(^\n*)|(\n*$)/gi, "");
}
str = str.split("\n");
return `/**\n${str.map((line) => ` * ${line}`).join("\n")}\n*/`;
}
//# sourceMappingURL=comment.js.map