0.0.1 • Published 7 years ago

hex2rgba v0.0.1

Weekly downloads
55,859
License
MIT
Repository
github
Last release
7 years ago

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