widest-line

WebJar for widest-line

Лицензия

Лицензия

MIT
Категории

Категории

IDE Инструменты разработки
Группа

Группа

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

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

widest-line
Последняя версия

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

3.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

widest-line
WebJar for widest-line
Ссылка на сайт

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

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

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

https://github.com/sindresorhus/widest-line

Скачать widest-line

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : string-width jar [4.0.0,5)

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

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

widest-line Build Status

Get the visual width of the widest line in a string - the number of columns required to display it

Some Unicode characters are fullwidth and use double the normal width. ANSI escape codes are stripped and doesn't affect the width.

Useful to be able to know the maximum width a string will take up in the terminal.

Install

$ npm install widest-line

Usage

const widestLine = require('widest-line');

widestLine('古\n\u001B[1m@\u001B[22m');
//=> 2

Related

License

MIT © Sindre Sorhus

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

Версия
3.1.0
2.0.1
2.0.0
1.0.0