npm install image-analyzer --save
or
yarn add image-analyzer --save
<script src="./https://unpkg.com/[email protected]/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);