figures

WebJar for figures

Лицензия

Лицензия

MIT
Группа

Группа

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

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

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

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

3.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

figures
WebJar for figures
Ссылка на сайт

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

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

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

https://github.com/sindresorhus/figures

Скачать figures

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

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

Зависимости

compile (1)

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

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

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

figures Build Status

Unicode symbols with Windows CMD fallbacks

and more...

Windows CMD only supports a limited character set.

Install

$ npm install figures

Usage

See the source for supported symbols.

const figures = require('figures');

console.log(figures('✔︎ check'));
// On non-Windows OSes:  ✔︎ check
// On Windows:           √ check

console.log(figures.tick);
// On non-Windows OSes:  ✔︎
// On Windows:           √

console.log(figures.main.tick);
// On all OSes:  ✔︎

console.log(figures.windows.tick);
// On all OSes:  √

API

figures(string)

Returns the input with replaced fallback Unicode symbols on Windows.

All the below figures are attached to the main export as shown in the example above.

string

Type: string

String where the Unicode symbols will be replaced with fallback symbols depending on the OS.

figures.main

Symbols to use when not running on Windows.

figures.windows

Symbols to use when running on Windows.

Figures

Name Non-Windows Windows
tick
cross ×
star *
square
squareSmall [ ]
squareSmallFilled [█]
play
circle ( )
circleFilled (*)
circleDotted ( )
circleDouble ( )
circleCircle (○)
circleCross (×)
circlePipe (│)
circleQuestionMark ?⃝ (?)
bullet *
dot .
line
ellipsis ...
pointer >
pointerSmall »
info i
warning
hamburger
smiley
mustache ┌─┐
heart
nodejs
arrowUp
arrowDown
arrowLeft
arrowRight
radioOn (*)
radioOff ( )
checkboxOn [×]
checkboxOff [ ]
checkboxCircleOn (×)
checkboxCircleOff ( )
questionMarkPrefix ?⃝
oneHalf ½ 1/2
oneThird 1/3
oneQuarter ¼ 1/4
oneFifth 1/5
oneSixth 1/6
oneSeventh 1/7
oneEighth 1/8
oneNinth 1/9
oneTenth 1/10
twoThirds 2/3
twoFifths 2/5
threeQuarters ¾ 3/4
threeFifths 3/5
threeEighths 3/8
fourFifths 4/5
fiveSixths 5/6
fiveEighths 5/8
sevenEighths 7/8

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.

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

Версия
3.2.0
3.1.0
3.0.0
2.0.0
1.7.0
1.3.5