# ng-colorpicker

> Simple and lightweight colorpicker component for angular2

Latest version **2.0.4** (published 2016-10-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install ng-colorpicker
pnpm add ng-colorpicker
yarn add ng-colorpicker
bun add ng-colorpicker
```

## 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 | 2.0.4 |
| Published | 2016-10-31 |
| First published | 2016-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | slowkazak |

## Links

- npm: https://www.npmjs.com/package/ng-colorpicker
- Repository: https://github.com/slowkazak/ng-colorpicker
- Homepage: https://github.com/slowkazak/ng-colorpicker#readme
- Issues: https://github.com/slowkazak/ng-colorpicker/issues
- npm.io page: https://npm.io/package/ng-colorpicker

## Dependencies (4)

- [typings](https://npm.io/package/typings.md) 1.3.1
- [zone.js](https://npm.io/package/zone.js.md) ^0.6.23
- [ts-helpers](https://npm.io/package/ts-helpers.md) ^1.1.1
- [typescript](https://npm.io/package/typescript.md) 1.8.10

## Recent versions

- 2.0.4 (latest) — 2016-10-31
- 2.0.3 — 2016-10-30

## README

# ng-colorpicker

Simple and lightweight colorpicker component for angular2

* no third-party dependencies
* simple for use

##USAGE
1. install package via npm ```
npm install ng-colorpicker
```
2. Import `ColorPicker` component in `app.module.ts`
  ```ts
  import { BrowserModule } from '@angular/platform-browser';
  import { NgModule } from '@angular/core';
  import { FormsModule } from '@angular/forms';
  import { HttpModule } from '@angular/http';
  
  import { ColorPicker } from 'ng-colorpicker/ng-colorpicker';

  import { AppComponent } from './app.component';
  
  @NgModule({
    declarations: [
      Appcomponent,
      ColorPicker
    ],
    imports: [
      BrowserModule,
      FormsModule,
      HttpModule
    ],
    providers: [],
    bootstrap: [AppComponent]
  })
  export class AppModule {}
  ```
3. Use `<app-colorpicker>` in `app.component.html`
     ```html
     <app-colorpicker  (color)="func($event)"></datepicker>
     ```
and get color parametres in func()

##Output Data
$event returns JSON object with RGB and Hex colors codes for every single channel. For example
```json
{
        "hexcolor": {
          "Rhex": "FF",
          "Ghex": "FF",
          "Bhex": "FF"
        },
        "rgbcolor": {
          "R": 255,
          "G": 255,
          "B": 255
        }
      }
```

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