README
Build
npm run build
Watch
npm run watch
Editor
If you use vscode
, Press Windows + Shift + B
it will build automatically
Usage
import { ofUrl } from "dominant";
const dominantColors = ofUrl("YOUR_URL");
``` npm run build ```
<script type="module">
import dominant from 'https://cdn.skypack.dev/dominant';
</script>
npm run build
npm run watch
If you use vscode
, Press Windows + Shift + B
it will build automatically
import { ofUrl } from "dominant";
const dominantColors = ofUrl("YOUR_URL");