# color-bundle

> Color conversion and manipulation with CSS string support (bundle)

Latest version **0.1.2** (published 2019-07-24) · MIT license · 0 weekly downloads

## Install

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

## 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.1.2 |
| Published | 2019-07-24 |
| First published | 2019-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 70.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mottie |
| Keywords | color, colour, css |

## Links

- npm: https://www.npmjs.com/package/color-bundle
- Homepage: https://github.com/Mottie/color-bundle
- npm.io page: https://npm.io/package/color-bundle

## 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.1.2 (latest) — 2019-07-24
- 0.1.1 — 2019-07-24
- 0.1.0 — 2019-07-24

## README

# Color Bundle

Using the [CDN version of Qix-'s color](https://cdn.jsdelivr.net/npm/color@3.1.2/index.min.js) code includes a `require`, so it can't be run in a browser. This bundled version uses rollup to combine all the dependencies and make a stand-alone version of color.

Additionally, this bundle exposes all named colors in `Color.namedColors`.

## Usage

* Download `color.min.js` from this repository.
* Load it in your HTML in a script tag.
* Use the global `Color` function to access the bundle:

  ```html
  <script src="color.min.js" />
  <script>
  console.log(Color("#bada55e5").rgb().toString());
  // => "rgba(186, 218, 85, 0.9)"

  console.log(Color.namedColors.rebeccapurple);
  // => [102, 51, 153] // [r, g, b]
  </script>
  ```

## Home page

Source Repo: https://github.com/Qix-/color
Demo page: https://npm.runkit.com/color

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