npm.io
0.0.1 • Published 9 years ago

hex2rgba

Licence
MIT
Version
0.0.1
Deps
0
Vulns
0
Weekly
0
Stars
3

hex2rgba

NPM

NPM version Build Status Coverage Status

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

License

MIT

Keywords