# hex2rgba

> Converts hexadecimal to RGBA.

Latest version **0.0.1** (published 2017-06-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install hex2rgba
pnpm add hex2rgba
yarn add hex2rgba
bun add hex2rgba
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-06-24 |
| First published | 2017-06-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Mark |
| Maintainers | remarkablemark |
| Keywords | hex, hexadecimal, rgb, rgba, color, converter |

## Links

- npm: https://www.npmjs.com/package/hex2rgba
- Repository: https://github.com/remarkablemark/hex2rgba
- Homepage: https://github.com/remarkablemark/hex2rgba#readme
- Issues: https://github.com/remarkablemark/hex2rgba/issues
- npm.io page: https://npm.io/package/hex2rgba

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2017-06-24

## README

# hex2rgba

[![NPM](https://nodei.co/npm/hex2rgba.png)](https://nodei.co/npm/hex2rgba/)

[![NPM version](https://img.shields.io/npm/v/hex2rgba.svg)](https://www.npmjs.com/package/hex2rgba)
[![Build Status](https://travis-ci.org/remarkablemark/hex2rgba.svg?branch=master)](https://travis-ci.org/remarkablemark/hex2rgba)
[![Coverage Status](https://coveralls.io/repos/github/remarkablemark/hex2rgba/badge.svg?branch=master)](https://coveralls.io/github/remarkablemark/hex2rgba?branch=master)

Converts hexadecimal to RGBA:

```
hex2rgba(hexadecimal[, alpha])
```

#### Example:

```js
var hex2rgba = require('hex2rgba');
hex2rgba('#f00');         // 'rgba(255,0,0,1)'
hex2rgba('BADA55', 0.42); // 'rgba(186,218,85,0.42)'
```

## Install

```sh
$ npm install hex2rgba
```

## Testing

```sh
$ npm test
$ npm run lint
```

## License

[MIT](https://github.com/remarkablemark/hex2rgba/blob/master/LICENSE)

---
_Source: https://npm.io/package/hex2rgba · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
