Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

terminal-size-cli

sindresorhus9MIT3.0.0

Reliably get the terminal window size (columns & rows)

cli-app, cli, terminal, size, console, window, width, height, columns, rows, lines, tty, redirected

readme

terminal-size-cli

Reliably get the terminal window size - cross-platform

Install

npm install --global terminal-size-cli

Usage

$ terminal-size --help

  Example
    $ terminal-size
    143
    24

  First line is the number of columns
  Second line is the number of rows