This package provides a function called getAverageColor, which
    returns in promise the YUV average color of the image, whose url (or base64)
    will be passed as a parameter.
  
    
    
    
    
    npm i -S get-average-color
import getAverageColor from 'get-average-color'
import image from './img/myCoolImage.jpg'
getAverageColor(image).then(rgb => console.log(rgb)) // { r: 66, g: 83, b: 25 }
  MIT.