color-rgba
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -14,2 +14,4 @@ /** @module color-rgba */ | ||
if (!parsed.space) return null; | ||
parsed.values = parsed.values.map(v => clamp(v, 0, 255)) | ||
@@ -16,0 +18,0 @@ |
{ | ||
"name": "color-rgba", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Convert color string to rgba array", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,2 +13,3 @@ const assert = require('assert') | ||
console.log(rgba('hsla(170, 50%, 45%, 1)')) | ||
assert.equal(rgba('xyz'), null) | ||
// console.log(rgba('hsla(170, 50%, 45%, 1)')) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2841
31