{"_id":"is-color-stop","maintainers":[{"name":"pigcan","email":"jiangjay818@gmail.com"}],"keywords":["color-stop","is-color"],"dist-tags":{"latest":"1.1.0"},"author":{"name":"pigcan","email":"jiangjay818@gmail.com"},"description":"Check if a string is CSS color stop","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","repository":{"type":"git","url":"git+https://github.com/pigcan/is-color-stop.git"},"bugs":{"url":"https://github.com/pigcan/is-color-stop/issues"},"license":"MIT","versions":{"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","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/is-color-stop/-/is-color-stop-1.0.0.tgz","integrity":"sha512-hvQaM2JfWF2lOLG811Qh3i6MGmqIvNil6dwcZBmGJf8BV7mu/PpcV+eE53fxBUN5cNRZ1ljykCaDIYyHlyC94Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFGB3+4MGjHPJlJUSfso/LXzh8CbAxITCk1sxKPvxb0tAiBfT97pTAw3qiYbYxfwq3Doao0FcTt1g2KA5isI7w6yFA=="}]},"maintainers":[{"name":"pigcan","email":"jiangjay818@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-color-stop-1.0.0.tgz_1500951942554_0.2500887874048203"}},"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","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/is-color-stop/-/is-color-stop-1.1.0.tgz","integrity":"sha512-H1U8Vz0cfXNujrJzEcvvwMDW9Ra+biSYA3ThdQvAnMLJkEHQXn6bWzLkxHtVYJ+Sdbx0b6finn3jZiaVe7MAHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBixsbBPMRZ/LzJ2JxF4KViNKTnkb/mJEiWakFRGf0DJAiAH7+rfOqV7zqOtP4imes0O80Mc51z5tfoJ7sjZbn1elQ=="}]},"maintainers":[{"name":"pigcan","email":"jiangjay818@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-color-stop-1.1.0.tgz_1500966104008_0.19003426423296332"}}},"name":"is-color-stop","time":{"created":"2017-07-25T03:05:42.651Z","modified":"2025-05-13T13:19:53.887Z","1.0.0":"2017-07-25T03:05:42.651Z","1.1.0":"2017-07-25T07:01:44.239Z"},"readmeFilename":"README.md","homepage":"https://github.com/pigcan/is-color-stop#readme"}