Skip to content

Commit 5f33b01

Browse files
author
James Campbell
committed
Rename npm package to swatchme (swatchify was too similar to watchify)
1 parent 8331909 commit 5f33b01

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

js/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# swatchify
1+
# swatchme
22

33
Extract dominant colors from images using k-means clustering — browser-only, zero dependencies.
44

55
## Install
66

77
```bash
8-
npm install swatchify
8+
npm install swatchme
99
```
1010

1111
## Usage
1212

1313
```ts
14-
import { extractColors, generatePaletteCanvas } from 'swatchify';
14+
import { extractColors, generatePaletteCanvas } from 'swatchme';
1515

1616
// From file input
1717
const file = document.querySelector('input[type="file"]').files[0];
@@ -77,7 +77,7 @@ img.src = dataUrl;
7777
Get black or white text color for optimal contrast on a background.
7878

7979
```ts
80-
import { getContrastColor } from 'swatchify';
80+
import { getContrastColor } from 'swatchme';
8181

8282
const textColor = getContrastColor({ r: 74, g: 144, b: 217 });
8383
// '#FFFFFF'

js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "swatchify",
2+
"name": "swatchme",
33
"version": "0.1.0",
44
"description": "Extract dominant colors from images using k-means clustering - browser-only, no dependencies",
55
"type": "module",

0 commit comments

Comments
 (0)