The string is displayed on the full width of the terminal.
% npm install full-width-of-terminal
const getStringFullWidthOfTerminal =
require('full-width-of-terminal').getStringFullWidthOfTerminal
// '=' is displayed across the width of the terminal
console.log(getStringFullWidthOfTerminal('='))
// By default, '-' is displayed.
console.log(getStringFullWidthOfTerminal())