full-width-of-terminal

The string is displayed on the full width of the terminal.


Keywords
console, terminal, width, full, max, string, fullwidth, nodejs
License
MIT
Install
npm install full-width-of-terminal@2.1.0

Documentation

full-width-of-terminal

npm version

The string is displayed on the full width of the terminal.

Install

% npm install full-width-of-terminal

Usage

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())