term-size

WebJar for term-size

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

term-size
Последняя версия

Последняя версия

2.2.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

term-size
WebJar for term-size
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/sindresorhus/term-size

Скачать term-size

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/term-size/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>term-size</artifactId>
    <version>2.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/term-size/
implementation 'org.webjars.npm:term-size:2.2.1'
// https://jarcasting.com/artifacts/org.webjars.npm/term-size/
implementation ("org.webjars.npm:term-size:2.2.1")
'org.webjars.npm:term-size:jar:2.2.1'
<dependency org="org.webjars.npm" name="term-size" rev="2.2.1">
  <artifact name="term-size" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='term-size', version='2.2.1')
)
libraryDependencies += "org.webjars.npm" % "term-size" % "2.2.1"
[org.webjars.npm/term-size "2.2.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

term-size

Reliably get the terminal window size

Because process.stdout.columns doesn't exist when run non-interactively, for example, in a child process or when piped. This module even works when all the TTY file descriptors are redirected!

Confirmed working on macOS, Linux, and Windows.

Install

$ npm install term-size

Usage

const termSize = require('term-size');

termSize();
//=> {columns: 143, rows: 24}

API

termSize()

Returns an object with columns and rows properties.

Info

The bundled macOS binary is signed and hardened.

Related


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Версии библиотеки

Версия
2.2.1
2.2.0
1.2.0
0.1.1