How to use the boxen.BorderStyle.Double function in boxen

To help you get started, we’ve selected a few boxen examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dylang / logging / src / formatters / format-color / color-formatters / decorate-with-level.ts View on Github external
const formatError = (duration: string, packageName: string, content: string) => {
    const text = indentedBox(chalk`{white.bgRed > ERROR <}\n\n${content}`, {
        padding: 1,
        borderColor: 'red',
        borderStyle: BorderStyle.Double
    });
    return `${duration}${packageName}\n${text}`;
};

boxen

Create boxes in the terminal

MIT
Latest version published 14 days ago

Package Health Score

88 / 100
Full package analysis