cli-width

  • Version 4.1.0
  • Published
  • 4.77 kB
  • No dependencies
  • ISC license

Install

npm i cli-width
yarn add cli-width
pnpm add cli-width

Overview

Get stdout window width, with two fallbacks, tty and then a default.

Index

Functions

Functions

function cliWidth

cliWidth: (options?: {
defaultWidth?: number;
output?: Stream;
tty?: typeof tty;
}) => number;

    Package Files (1)

    Dependencies (0)

    No dependencies.

    Dev Dependencies (5)

    Peer Dependencies (0)

    No peer dependencies.

    Badge

    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/cli-width.

    • Markdown
      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/cli-width)
    • HTML
      <a href="https://www.jsdocs.io/package/cli-width"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>