Dominant Color
dominant-color is an easy to use, accurate and blazing fast ES6 library that helps you get the dominant color of an image.
Installation
npm install node-dominant-color
Usage
const dominant = require('node-dominant-color')
console.log(dominant(buffer)) // #FF0000