Qix- / color-convert

Plain color conversion functions in JavaScript
MIT License
744 stars 96 forks source link

Validate arguments by default #72

Open sindresorhus opened 5 years ago

sindresorhus commented 5 years ago

And throw when invalid.

See: https://github.com/chalk/ansi-styles/issues/36#issuecomment-370046775

Qix- commented 3 years ago

This is going to take the form of separate color-convert and color-convert/unchecked imports. The branching penalty of checking inputs is going to cripple e.g. image conversion libraries that use color-convert.