hex2rgba
v0.0.1
Published
Converts hexadecimal to RGBA.
Downloads
17,414
Maintainers
Readme
hex2rgba
Converts hexadecimal to RGBA:
hex2rgba(hexadecimal[, alpha])
Example:
var hex2rgba = require('hex2rgba');
hex2rgba('#f00'); // 'rgba(255,0,0,1)'
hex2rgba('BADA55', 0.42); // 'rgba(186,218,85,0.42)'
Install
$ npm install hex2rgba
Testing
$ npm test
$ npm run lint