# vue-randomcolor

> Tiny wrapper for integrating randomcolor into Vue.js

Latest version **1.0.4** (published 2019-10-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-randomcolor
pnpm add vue-randomcolor
yarn add vue-randomcolor
bun add vue-randomcolor
```

## 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.4 |
| Published | 2019-10-03 |
| First published | 2018-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Alexander Becker |
| Maintainers | alebeck |
| Keywords | vue, randomcolor, color, random, wrapper |

## Links

- npm: https://www.npmjs.com/package/vue-randomcolor
- Repository: https://github.com/alebeck/vue-randomcolor
- Homepage: https://github.com/alebeck/vue-randomcolor#readme
- Issues: https://github.com/alebeck/vue-randomcolor/issues
- npm.io page: https://npm.io/package/vue-randomcolor

## 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.4 (latest) — 2019-10-03
- 1.0.3 — 2018-11-11
- 1.0.2 — 2018-11-10
- 1.0.1 — 2018-11-10
- 1.0.0 — 2018-11-10

## README

# vue-randomcolor [![npm version](http://img.shields.io/npm/v/vue-randomcolor.svg)](https://npmjs.org/package/vue-randomcolor)

Tiny wrapper for integrating [randomcolor](https://github.com/davidmerfield/randomColor) into Vue.js. Less than `300 bytes` minified.

## Installation

Install via npm:

```sh
npm install --save vue-randomcolor randomcolor
```

Then you can install it as a Vue plugin:

```js
import Vue from 'vue'
import VueRandomColor from 'vue-randomcolor'

Vue.use(VueRandomColor)
```

vue-randomcolor will take care of importing randomcolor automatically.

## Usage

After installation, randomcolor is bound to `this` in every single file component:

```js
this.$randomColor();
// outputs e.g. #ffda63
```

Of course, all [randomcolor options](https://github.com/davidmerfield/randomColor#options) can be used with the function:

```js
this.$randomColor({ luminosity: 'light', hue: 'red' })
// outputs e.g. #f293ac
```

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