1.2.2 • Published 4 years ago

@ripreact/hsl v1.2.2

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

@ripreact/hsl

Minimal (≈1k minigzip) and fast (≈23% faster than original) HSLᵤᵥ implementation with TypeScript support.

yarn add @ripreact/hsl

Usage

// ES module
import { hsl, hsla } from '@ripreact/hsl';

console.log(hsl(0, 100, 50)); //       → `'#ea0064'`
console.log(hsla(0, 100, 50, 0.5)); // → `'#ea006480'`
// CommonJS
const { hsl, hsla } = require('@ripreact/hsl/cjs');

console.log(hsl(0, 100, 50));
console.log(hsla(0, 100, 50, 0.5));

License

MIT

1.2.2

4 years ago

1.2.1

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago