robojones/z1

View on GitHub
cli/lib/heading.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
const colors = require('colors/safe')

/**
 * Logs a horizontal line with the width of the terminal.
 */
function heading(msg = '') {
    console.log(colors.inverse.dim(msg + ' '.repeat(process.stdout.columns - msg.length)))
}

module.exports = heading