rgb-regex

WebJar for rgb-regex

Лицензия

Лицензия

MIT
Группа

Группа

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

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

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

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

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

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

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

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

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

https://github.com/regexhq/rgb-regex

Скачать rgb-regex

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

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

Зависимости

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

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

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

rgb-regex

Build Status

Regex for RGB color strings.

Installation

npm install --save rgb-regex

Usage

var rgbRegex = require('rgb-regex');

rgbRegex({ exact: true }).test('rgb(12, 34, 56)');  // => true
rgbRegex({ exact: true }).test('unicorns');         // -> false
rgbRegex({ exact: true }).test('rgb(,,)');          // => false

rgbRegex().exec('rgb(12, 34, 56)');
// => [
//  '12',
//  '34',
//  '56',
//  index: 0,
//  input: 'rgb(12,34,56)'
// ]

'rgb(12, 34, 56) cats and dogs'.match(rgbRegex());
// = ['rgb(12, 34, 56)']

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by John Otander (@4lpine).


This package was initially generated with yeoman and the p generator.

org.webjars.npm

RegexHQ

Collaboration on a world-wide community-driven collection of RegExp patterns and tools that can make our life easier.

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

Версия
1.0.1