vike
Version:
The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.
16 lines (15 loc) • 429 B
JavaScript
import { assert } from './assert.js';
import { stripAnsi } from './stripAnsi.js';
export { formatHintLog };
function formatHintLog(msg) {
assert(msg.length > 0);
const msgLength = stripAnsi(msg).length;
const sep = '─'.repeat(msgLength);
return [
// prettier-ignore
// biome-ignore format:
`┌─${sep}─┐`,
`│ ${msg} │`,
`└─${sep}─┘`
].join('\n');
}