Get dominant color of image directly from url
$ npm install img-color
const color = require('img-color');
color.getDominantColor(url)
.then(json => console.log(json))
.catch(err => console.error(err));
returns json object wher key is dColor
and value hex formated color
{ dColor: 'ffc20c' }