hex2rgba
Converts hexadecimal to RGBA.
Last updated 8 years ago by remarkablemark .
MIT · Repository · Bugs · Original npm
$ cnpm install hex2rgba 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.1                                ...           latest (8 years ago)

1 Versions

  • 0.0.1                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (4)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org