jariz / vibrant.js

Extract prominent colors from an image. JS port of Android's Palette.
http://jariz.github.io/vibrant.js/
MIT License
4.61k stars 236 forks source link

UMD / Publish to npm #4

Closed btholt closed 9 years ago

btholt commented 9 years ago

Hi friend!

I'm working on getting this into my project (as it is the missing link to getting working; thank you so much!) and I noticed it's not published to npm. I'll probably work it so I can use it personally as an npm module; do you have any interest in using the UMD format so that your module can be consumed by both Bower and npm users?

btholt commented 9 years ago

Also, though I understand this isn't your target, this doesn't seem to work out of the box with deamdify / debowerify.

Just so you know. :smiley:

jariz commented 9 years ago

Hey, maybe I'm not smart enough, but I'm not entirely sure what you mean, can you file a pull request?

sshrshnv commented 9 years ago

+1 @jariz, create and publish package to npm, please

btholt commented 9 years ago

I'm happy to take a shot at it. It'll just make it so every time you publish to Bower you'll have to remember to publish to npm too.

matthieuh commented 9 years ago

+1

akfish commented 9 years ago

If anyone is looking for a node.js port, here's my implementation: node-vibrant. It's modified from this project and works on server-side.

jariz commented 9 years ago

@akfish wow that's pretty cool. especially because it's actually compatible with node while me moving this project to some universal format would still leave the 'it only works on browsers' problem So, thanks. I'll add your project to the readme!

akfish commented 9 years ago

A little update. node-vibrant now supports browser & browserify with identical API for all platforms. I thought this might be what this issue is originally about. Just so you know. :)

btholt commented 9 years ago

It is. Awesome. Thank you.