abetomo / full-width-of-terminal

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:JavaScript 100.0%