How to use the boxen.BorderStyle.Single 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 formatHelp = (duration: string, packageName: string, content: string) => {
    const text = indentedBox(content, { padding: 1, borderColor: 'blue', borderStyle: BorderStyle.Single });
    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