{"_id":"is-color-stop","_rev":"156867","name":"is-color-stop","description":"Check if a string is CSS color stop","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"npm:pigcan","email":""}],"time":{"modified":"2021-06-03T11:37:10.000Z","created":"2017-07-25T03:05:42.651Z","1.1.0":"2017-07-25T07:01:44.239Z","1.0.0":"2017-07-25T03:05:42.651Z"},"users":{},"author":{"name":"pigcan","email":"jiangjay818@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/pigcan/is-color-stop.git"},"versions":{"1.1.0":{"name":"is-color-stop","description":"Check if a string is CSS color stop","version":"1.1.0","main":"index.js","directories":{"test":"test"},"scripts":{"test":"nyc --reporter=lcov --reporter=text mocha","coveralls":"cat ./coverage/lcov.info | coveralls","lint":"eslint --ext .js lib util ./index.js"},"devDependencies":{"coveralls":"^2.13.1","eslint":"^4.3.0","eslint-config-airbnb":"^15.1.0","eslint-plugin-import":"^2.7.0","mocha":"^3.4.2","nyc":"^11.0.3"},"dependencies":{"css-color-names":"^0.0.4","hex-color-regex":"^1.1.0","hsl-regex":"^1.0.0","hsla-regex":"^1.0.0","rgb-regex":"^1.0.1","rgba-regex":"^1.0.0"},"repository":{"type":"git","url":"git+https://github.com/pigcan/is-color-stop.git"},"keywords":["color-stop","is-color"],"author":{"name":"pigcan","email":"jiangjay818@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/pigcan/is-color-stop/issues"},"homepage":"https://github.com/pigcan/is-color-stop#readme","gitHead":"87a6d1637e76b96d820de3a46937bbda9f0ab60a","_id":"is-color-stop@1.1.0","_shasum":"cfff471aee4dd5c9e158598fbe12967b5cdad345","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"pigcan","email":"jiangjay818@gmail.com"},"dist":{"shasum":"cfff471aee4dd5c9e158598fbe12967b5cdad345","size":3808,"noattachment":false,"key":"/is-color-stop/-/is-color-stop-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-color-stop/download/is-color-stop-1.1.0.tgz"},"maintainers":[{"name":"npm:pigcan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-color-stop-1.1.0.tgz_1500966104008_0.19003426423296332"},"publish_time":1500966104239,"_hasShrinkwrap":false,"_cnpm_publish_time":1500966104239},"1.0.0":{"name":"is-color-stop","description":"Check if a string is CSS color stop","version":"1.0.0","main":"index.js","directories":{"test":"test"},"scripts":{"test":"nyc --reporter=lcov --reporter=text mocha","coveralls":"cat ./coverage/lcov.info | coveralls","lint":"eslint --ext .js lib util ./index.js"},"devDependencies":{"coveralls":"^2.13.1","eslint":"^4.3.0","eslint-config-airbnb":"^15.1.0","eslint-plugin-import":"^2.7.0","mocha":"^3.4.2","nyc":"^11.0.3"},"dependencies":{"css-color-names":"^0.0.4","hex-color-regex":"^1.1.0","hsl-regex":"^1.0.0","hsla-regex":"^1.0.0","rgb-regex":"^1.0.1","rgba-regex":"^1.0.0"},"repository":{"type":"git","url":"git+https://github.com/pigcan/is-color-stop.git"},"keywords":["color-stop","is-color"],"author":{"name":"pigcan","email":"jiangjay818@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/pigcan/is-color-stop/issues"},"homepage":"https://github.com/pigcan/is-color-stop#readme","gitHead":"720ca033bca63496c778303d8f91bde999cb40f0","_id":"is-color-stop@1.0.0","_shasum":"a6e122bb44f5b2ea8af75891dbacb3e701948d34","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"pigcan","email":"jiangjay818@gmail.com"},"dist":{"shasum":"a6e122bb44f5b2ea8af75891dbacb3e701948d34","size":3854,"noattachment":false,"key":"/is-color-stop/-/is-color-stop-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-color-stop/download/is-color-stop-1.0.0.tgz"},"maintainers":[{"name":"npm:pigcan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-color-stop-1.0.0.tgz_1500951942554_0.2500887874048203"},"publish_time":1500951942651,"_hasShrinkwrap":false,"_cnpm_publish_time":1500951942651}},"readme":"# is-color-stop\n\nCheck if a string is CSS color stop\n\n[![NPM version](https://img.shields.io/npm/v/is-color-stop.svg?style=flat)](https://npmjs.org/package/is-color-stop)\n[![Build Status](https://img.shields.io/travis/pigcan/is-color-stop.svg?style=flat)](https://travis-ci.org/pigcan/is-color-stop)\n[![Coverage Status](https://img.shields.io/coveralls/pigcan/is-color-stop.svg?style=flat)](https://coveralls.io/r/pigcan/is-color-stop)\n[![NPM downloads](http://img.shields.io/npm/dm/is-color-stop.svg?style=flat)](https://npmjs.org/package/is-color-stop)\n[![Dependency Status](https://david-dm.org/pigcan/is-color-stop.svg)](https://david-dm.org/pigcan/is-color-stop)\n\n\n## Install\n\n```shell\n$ npm install is-color-stop\n```\n\n## Usage\n\n```js\nconst isColorStop = require('is-color-stop');\n\nisColorStop('yellow') // true\nisColorStop('yellow', '12px') // true\nisColorStop('yellow', 'calc(100%)') // true\nisColorStop('yellow', 'px') // false\n\nisColorStop.isColor('red') // true\nisColorStop.isColor('rgb(255)') // false\n\nisColorStop.isRGB('rgb(255, 0, 0)') // true\nisColorStop.isRGB('rgb(255)') // false\n\nisColorStop.isRGBA('rgba(255, 0, 0, .8)') // true\nisColorStop.isRGBA('rgba(255, 0, 0)') // false\n\nisColorStop.isHSL('hsl(123, 45%, 67%)') // true\nisColorStop.isHSL('hsl(123, 45%)') // false\n\nisColorStop.isHSLA('hsla(123, 45%, 67%, 0.4)') // true\nisColorStop.isHSLA('hsla(123, 45%, 67%)') // false\n\nisColorStop.isHex('#fff') // true\nisColorStop.isHex('#ff') // false\n\nisColorStop.isCSSColorName('tomato') // true\nisColorStop.isCSSColorName('hoge') // false\n\nisColorStop.isCSSLengthUnit('px') // true\nisColorStop.isCSSLengthUnit('x') // false\n\nisColorStop.isTransparent('transparent') // true\n```\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2017 Pigcan\n","_attachments":{},"homepage":"https://github.com/pigcan/is-color-stop#readme","bugs":{"url":"https://github.com/pigcan/is-color-stop/issues"},"license":"MIT"}