omgovich / colord

👑 A tiny yet powerful tool for high-performance color manipulations and conversions
https://colord.omgovich.ru
MIT License
1.69k stars 51 forks source link

Add `isValid` method #26

Closed omgovich closed 3 years ago

omgovich commented 3 years ago

Checked dozens of projects using tinycolor and noticed that a lot of developers use isValid method to check their values. Since it not a big deal to implement a method doing the same and the new code costs about 0,02KB, I decided to implement that.

github-actions[bot] commented 3 years ago

Size Change: +19 B (0%)

Total Size: 4.92 kB

Filename Size Change
./dist/index.js 1.77 kB +19 B (+1%)
ℹ️ View Unchanged | Filename | Size | Change | | :--- | :---: | :---: | | `./dist/plugins/a11y.js` | 463 B | 0 B | | `./dist/plugins/hwb.js` | 617 B | 0 B | | `./dist/plugins/names.js` | 1.36 kB | 0 B | | `./dist/plugins/xyz.js` | 701 B | 0 B |

compressed-size-action