is-color-stop

WebJar for is-color-stop

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-color-stop
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

is-color-stop
WebJar for is-color-stop
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/pigcan/is-color-stop

Download is-color-stop

How to add to project

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

Dependencies

compile (6)

Group / Artifact Type Version
org.webjars.npm : hex-color-regex jar [1.1.0,2)
org.webjars.npm : hsl-regex jar [1.0.0,2)
org.webjars.npm : rgb-regex jar [1.0.1,2)
org.webjars.npm : css-color-names jar [0.0.4,0.0.5)
org.webjars.npm » rgba-regex jar [1.0.0,2)
org.webjars.npm : hsla-regex jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

is-color-stop

Check if a string is CSS color stop

NPM version Build Status Coverage Status NPM downloads Dependency Status Greenkeeper badge

Install

$ npm install is-color-stop

Usage

const isColorStop = require('is-color-stop');

isColorStop('yellow') // true
isColorStop('yellow', '12px') // true
isColorStop('yellow', 'calc(100%)') // true
isColorStop('yellow', 'px') // false

isColorStop.isColor('red') // true
isColorStop.isColor('rgb(255)') // false

isColorStop.isRGB('rgb(255, 0, 0)') // true
isColorStop.isRGB('rgb(255)') // false

isColorStop.isRGBA('rgba(255, 0, 0, .8)') // true
isColorStop.isRGBA('rgba(255, 0, 0)') // false

isColorStop.isHSL('hsl(123, 45%, 67%)') // true
isColorStop.isHSL('hsl(123, 45%)') // false

isColorStop.isHSLA('hsla(123, 45%, 67%, 0.4)') // true
isColorStop.isHSLA('hsla(123, 45%, 67%)') // false

isColorStop.isHex('#fff') // true
isColorStop.isHex('#ff') // false

isColorStop.isCSSColorName('tomato') // true
isColorStop.isCSSColorName('hoge') // false

isColorStop.isCSSLengthUnit('px') // true
isColorStop.isCSSLengthUnit('x') // false

isColorStop.isTransparent('transparent') // true

License

The MIT License (MIT)

Copyright (c) 2017 Pigcan

Versions

Version
1.1.0