Package Exports
- color-parser
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (color-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
color-parser
CSS color string parser
Installation
$ component install component/color-parser
Example
var parse = require('color-parser');
parse('#fc0')
// => { r: 255, g: 204, b: 0, a: 1 }
parse('#ffcc00')
// => { r: 255, g: 204, b: 0, a: 1 }
parse('rgb(255, 204, 0)')
// => { r: 255, g: 204, b: 0, a: 1 }
parse('rgba(255, 204, 0, 1)')
// => { r: 255, g: 204, b: 0, a: 1 }
License
MIT