# p-format-hex

> Format an hex color code into its standard format (#abc -> #ffffff), promisified

Latest version **1.0.0** (published 2017-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install p-format-hex
pnpm add p-format-hex
yarn add p-format-hex
bun add p-format-hex
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-04-11 |
| First published | 2017-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dominik Winter |
| Maintainers | sydev |
| Keywords | hex, format, standard, promise |

## Links

- npm: https://www.npmjs.com/package/p-format-hex
- npm.io page: https://npm.io/package/p-format-hex

## Dependencies (2)

- [cut-hex](https://npm.io/package/cut-hex.md) ^1.0.0
- [p-is-hex](https://npm.io/package/p-is-hex.md) ^1.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-04-11

## README

# p-format-hex

Format an hex color code into its standard format (#abc -> #aabbcc), promisified

## Table of contents
- [Installation](#installation)
- [Usage](#usage)
- [Development](#development)
- [Changelog](#changelog)


## Installation

```
$ npm install --save p-format-hex
```

Or if you prefer yarn:

```
$ yarn add p-format-hex
```

## Usage

```JavaScript
const format_hex = require('p-format-hex');

format_hex('#abc')
  .then(hex => console.log(hex)) // '#aabbcc'
  .catch(err => console.error(err));

```

## Development

```
$ npm test
```

## Changelog

- 1.0.0
  - Initial Release

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