colorthief 2.6.0
Get the dominant color or color palette from an image.
colorthief@2.6.0 was published on 2024-10-09. Its manifest declares 4 runtime dependencies and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. No Node.js engine requirement is declared in this manifest.
All colorthief versions · Permanent reference to 2.6.0 · View npm registry JSON · Latest release
Package specifications
| Version | 2.6.0 |
|---|---|
| License declaration | MIT |
| Published | 2024-10-09T19:18:07.339Z |
| Node.js requirement | Not declared |
| Type declarations | Not declared |
| Runtime dependency count | 4 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 550.57 KiB |
| Published file count | 43 |
| Package type | Not declared |
| ES module entry | dist/color-thief.mjs |
| Default entry | dist/color-thief.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 55 |
| Repository stars | 13663 |
| Repository forks | 1308 |
Install colorthief 2.6.0
npm install colorthief@2.6.0 pnpm add colorthief@2.6.0 yarn add colorthief@2.6.0
Runtime dependencies
- sharp ^0.33.5
- file-type ^16.5.3
- ndarray-pixels ^4.1.0
- @lokesh.dhakar/quantize ^1.4.0
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @emnapi/runtime@1.11.3 — indirect
- @img/sharp-darwin-arm64@0.33.5 — indirect
- @img/sharp-darwin-x64@0.33.5 — indirect
- @img/sharp-libvips-darwin-arm64@1.0.4 — indirect
- @img/sharp-libvips-darwin-x64@1.0.4 — indirect
- @img/sharp-libvips-linux-arm@1.0.5 — indirect
- @img/sharp-libvips-linux-arm64@1.0.4 — indirect
- @img/sharp-libvips-linux-s390x@1.0.4 — indirect
- @img/sharp-libvips-linux-x64@1.0.4 — indirect
- @img/sharp-libvips-linuxmusl-arm64@1.0.4 — indirect
- @img/sharp-libvips-linuxmusl-x64@1.0.4 — indirect
- @img/sharp-linux-arm@0.33.5 — indirect
- @img/sharp-linux-arm64@0.33.5 — indirect
- @img/sharp-linux-s390x@0.33.5 — indirect
- @img/sharp-linux-x64@0.33.5 — indirect
- @img/sharp-linuxmusl-arm64@0.33.5 — indirect
- @img/sharp-linuxmusl-x64@0.33.5 — indirect
- @img/sharp-wasm32@0.33.5 — indirect
- @img/sharp-win32-ia32@0.33.5 — indirect
- @img/sharp-win32-x64@0.33.5 — indirect
- @lokesh.dhakar/quantize@1.4.0 — direct
- @tokenizer/token@0.3.0 — indirect
- @types/ndarray@1.1.0 — indirect
- abort-controller@3.0.0 — indirect
- base64-js@1.5.1 — indirect
- buffer@6.0.3 — indirect
- color@4.2.3 — indirect
- color-convert@2.0.1 — indirect
- color-name@1.1.4 — indirect
- color-string@1.9.1 — indirect
- cwise-compiler@1.1.3 — indirect
- detect-libc@2.1.2 — indirect
- event-target-shim@5.0.1 — indirect
- events@3.3.0 — indirect
- file-type@16.5.4 — direct
- ieee754@1.2.1 — indirect
- iota-array@1.0.0 — indirect
- is-arrayish@0.3.4 — indirect
- is-buffer@1.1.6 — indirect
- ndarray@1.1.1 — indirect
- ndarray-ops@1.2.2 — indirect
- ndarray-pixels@4.1.0 — direct
- peek-readable@4.1.0 — indirect
- process@0.11.10 — indirect
- readable-stream@4.8.0 — indirect
- readable-web-to-node-stream@3.0.4 — indirect
- safe-buffer@5.2.1 — indirect
- semver@7.8.6 — indirect
- sharp@0.33.5 — direct
- simple-swizzle@0.2.4 — indirect
- string_decoder@1.3.0 — indirect
- strtok3@6.3.0 — indirect
- token-types@4.2.1 — indirect
- tslib@2.9.1 — indirect
- uniq@1.0.1 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 0/10 — Found 1/25 approved changesets -- score normalized to 0 |
|---|---|
| Maintained | 10/10 — 13 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10 |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Pinned-Dependencies | 3/10 — dependency not pinned by hash detected -- score normalized to 3 |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Fuzzing | 0/10 — project is not fuzzed |
| Security-Policy | 0/10 — security policy file not detected |
| License | 10/10 — license file detected |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- Readable npm registry JSON — retrieved 2026-11-04T21:30:32.218Z
- https://api.deps.dev/v3/systems/npm/packages/colorthief/versions/2.6.0 — retrieved 2026-11-04T21:30:32.302Z
- https://api.deps.dev/v3/systems/npm/packages/colorthief/versions/2.6.0:dependencies — retrieved 2026-11-04T21:30:32.339Z
- https://api.deps.dev/v3/projects/github.com%2Flokesh%2Fcolor-thief — retrieved 2026-11-04T12:22:44.605Z (stale snapshot; refresh pending)