npm install image-analyzer --save
or
yarn add image-analyzer --save
<script src="./https://unpkg.com/image-analyzer@0.1.0/lib/index.js"></script>
const analyzer = new Analyzer(url); analyzer .analyze() .then(colors => { // HERE YOU GOT ARRAY OF COLORS(hex) console.log(colors); }) .catch(console.error);