@catladder/cli
Version:
Panter cli tool for cloud CI/CD and DevOps
14 lines • 538 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.boxWithAsci = void 0;
// thx copilot
const boxWithAsci = (str) => {
const length = str.length;
const box = "╔" + "═".repeat(length + 3) + "╗";
const empty = "║ " + " ".repeat(length + 1) + " ║";
const text = "║ " + str + " ║";
const bottom = "╚" + "═".repeat(length + 3) + "╝";
return [box, empty, text, empty, bottom].join("\n");
};
exports.boxWithAsci = boxWithAsci;
//# sourceMappingURL=boxWithAscii.js.map