# hex-to

> Convert hex color to multiple different types

Latest version **1.0.1** (published 2018-08-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install hex-to
pnpm add hex-to
yarn add hex-to
bun add hex-to
```

## 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.1 |
| Published | 2018-08-19 |
| First published | 2018-08-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Connor Hancovsky |
| Maintainers | chancovsky |

## Links

- npm: https://www.npmjs.com/package/hex-to
- Repository: https://github.com/chancovsky/hex-to
- Homepage: https://github.com/chancovsky/hex-to#readme
- Issues: https://github.com/chancovsky/hex-to/issues
- npm.io page: https://npm.io/package/hex-to

## Recent versions

- 1.0.1 (latest) — 2018-08-19
- 1.0.0 — 2018-08-19

## README

# hex-to

A simple tool for converting hex color values to multiple different types.

## tl;dr (Getting Started)

Currently, hex-to is distributed via npm with no dependencies.

    npm install --save hex-to

## Usage

```javascript
const convert = require('hex-to');

console.log(convert('#644CEB').toRGB()); // `rgb(100, 76, 235)`
```

### Supported types

| Input   | toRGB() | toHSL() | toCMYK() | toHWB() | 
| ----------------- | :------: | :--------: | :-------------: | :-----------:|
| hex              |    ✅    |     ✅     |       ✅        |      ✅       |   

### Building Source Code
All code editing is done within the `\src` directory and when you are ready to try a new build just use `npm run build` and a new build will be created in the `\dist` directory.

### Unit Tests

Unit test have been done using a basic Jest implementation.  These tests can found under the `\test` directory and can be run using `npm run test`.

## Authors

* [Connor Hancovsky](http://connorhancovsky.com)


## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file
for details.

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