• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

color-picker-service

provides a color picker as a service for other package
paulpflug
0.0.1 3,953
1
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

color-picker-service

provides a color picker as a service for other packages.

color-picker-service

uses the simple-color-picker

Usage

package.json

{
  "otherStuff": "otherData",
  "consumedServices": {
    "color-picker": {
      "versions": {
        "^0.0.1": "consumeColorPicker"
      }
    }
  }
}

your package:

  #in main module 
  consumeColorPicker: (colorPicker) =>
    @colorPicker = colorPicker
 
    #where you want to use it 
    @colorPicker {x:x,y:y, color: oldColor}, (newColor) ->
      #do something with new color 
      #newColor will be undefined on cancel and false on "uncolor" 
      unless newColor? # not canceled 
        if newColor
          #has a color 
        else
          #uncolor was selected 

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by