New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-thief-rs

Node.js bindings for color-thief-rs

0.1.1
latest
Version published
Maintainers
1
Created

node-color-thief-rs

Node.js bindings for color-thief-rs

Usage

const colorThief = require('color-thief-rs')

const imgPath = '/tmp/sample.png'

colorThief.getDominantColor(imgPath)
  .then(color => console.log(color))

Benchmark

rust color thief x 186 ops/sec ±0.75% (85 runs sampled)
node color thief x 62.46 ops/sec ±2.83% (67 runs sampled)
Fastest is rust color thief

FAQs

Package last updated on 27 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts