UNPKG

vike

Version:

The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.

18 lines (17 loc) 569 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.formatHintLog = formatHintLog; const assert_js_1 = require("./assert.js"); const stripAnsi_js_1 = require("./stripAnsi.js"); function formatHintLog(msg) { (0, assert_js_1.assert)(msg.length > 0); const msgLength = (0, stripAnsi_js_1.stripAnsi)(msg).length; const sep = '─'.repeat(msgLength); return [ // prettier-ignore // biome-ignore format: `┌─${sep}─┐`, `│ ${msg} │`, `└─${sep}─┘`, ].join('\n'); }