JSPM

hex2rgba

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6215
  • Score
    100M100P100Q129687F
  • License MIT

Converts hexadecimal to RGBA.

Package Exports

  • hex2rgba

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 (hex2rgba) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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