# ewc-color

> Convert a Hex string to an ABGR number. Useful for ewc.

Latest version **1.0.0** (published 2019-12-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install ewc-color
pnpm add ewc-color
yarn add ewc-color
bun add ewc-color
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-12-28 |
| First published | 2019-04-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jack Baron |
| Maintainers | lolpants |
| Keywords | ewc, color, hex, number, string, rgba, abgr |

## Links

- npm: https://www.npmjs.com/package/ewc-color
- Repository: git@github.com:lolPants/ewc-color
- Homepage: https://github.com/lolPants/ewc-color#readme
- Issues: https://github.com/lolPants/ewc-color/issues
- npm.io page: https://npm.io/package/ewc-color

## 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

- 1.0.0 (latest) — 2019-12-28
- 0.1.1 — 2019-07-11
- 0.1.0 — 2019-04-24

## README

# 🎨 EWC Color
[![NPM version](https://img.shields.io/npm/v/ewc-color.svg?maxAge=3600)](https://www.npmjs.com/package/ewc-color)
[![NPM downloads](https://img.shields.io/npm/dt/ewc-color.svg?maxAge=3600)](https://www.npmjs.com/package/ewc-color)
[![Build status](https://travis-ci.org/lolPants/ewc-color.svg)](https://travis-ci.org/lolPants/ewc-color)
[![Dependencies](https://img.shields.io/david/lolpants/ewc-color.svg?maxAge=3600)](https://david-dm.org/lolpants/ewc-color)
[![Coverage Status](https://coveralls.io/repos/github/lolPants/ewc-color/badge.svg?branch=master)](https://coveralls.io/github/lolPants/ewc-color?branch=master)

##### Convert a Hex string to an ABGR number. Useful for [ewc](https://www.npmjs.com/package/ewc).

## 💾 Installation
The package is on the NPM registry as `ewc-color`. Simply install it with your NPM client of choice.

## 🔧 Usage
First, import the module:
```js
const { convert } = require('ewc-color')
```

`convert()` takes a hex string in short (`#fff`), RGB (`#ffffff`) or RGBA (`#ffffff20`) forms and returns an ABGR color represented as a decimal number.

### 📝 Example
```js
// Import the module
const { convert } = require('ewc-color')

const color = convert('#fff')
// -> 0x20ffffff
```

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