full-width-of-terminal
Version:
The string is displayed on the full width of the terminal.
23 lines (16 loc) • 571 B
Markdown
[](https://badge.fury.io/js/full-width-of-terminal)
The string is displayed on the full width of the terminal.
```
% npm install full-width-of-terminal
```
```javascript
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())
```