rgb-hex

WebJar for rgb-hex

Лицензия

Лицензия

MIT
Группа

Группа

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

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

rgb-hex
Последняя версия

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

2.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

rgb-hex
WebJar for rgb-hex
Ссылка на сайт

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

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

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

https://github.com/sindresorhus/rgb-hex

Скачать rgb-hex

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

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

Зависимости

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

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

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

rgb-hex

Convert RGB(A) color to HEX

Install

$ npm install rgb-hex

Usage

const rgbHex = require('rgb-hex');

rgbHex(65, 131, 196);
//=> '4183c4'

rgbHex('rgb(40, 42, 54)');
//=> '282a36'

rgbHex(65, 131, 196, 0.2);
//=> '4183c433'

rgbHex(40, 42, 54, '75%');
//=> '282a36bf'

rgbHex('rgba(40, 42, 54, 75%)');
//=> '282a36bf'

Related

License

MIT © Sindre Sorhus

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

Версия
2.1.0
1.0.0