@saeris/isomorphic-vibrant
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

🎨 Isomorphic Vibrant

npm versionbundlephobia minified + gzipbundlephobia dependency countbundlephobia tree-shaking supporttravis statuscodecov coverage

A library for extracting prominent colors from an image anywhere you can run JavaScript!


🚧 Under Construction

Warning: This library is still under construction! A pre-release version is available for testing only. Expect things to be broken. The below documentation is both incomplete and subject to change.

📦 Installation

npm install --save @saeris/isomorphic-vibrant
# or
yarn add @saeris/isomorphic-vibrant

🔧 Usage

import { Vibrant } from "@saeris/isomorphic-vibrant"

const vibrant = new Vibrant(`url/to/image.png`, { colorCount: 64 })
console.log(await vibrant.getPalette())

📣 Acknowledgements

This library was forked from node-vibrant.

🥂 License

Released under the MIT license.

Package Sidebar

Install

npm i @saeris/isomorphic-vibrant

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

249 kB

Total Files

38

Last publish

Collaborators

  • saeris