onecolor

v4.1.0
Javascript color object with implicit color space conversions. Supports RGB, HSV, HSL and CMYK with alpha channel.
color colour conversion rgb hsv hsl cmyk

one-color-all

rollup -c rollup.config.js index.js -o one-color-all.js

one-color

rollup -c rollup.config.js minimal.js -o one-color.js

build

npm run one-color && npm run one-color-all

preversion

npm run lint && npm run build && TEST_BUNDLES=true npm test && bash -c 'git add one-color{-all,}.js{,.map}'

lint

eslint . && prettier --check '**/*.{js,md}'

test

npm run lint && mocha

test:documentation

evaldown --validate --capture=console ./README.md

coverage

istanbul cover _mocha -- --reporter dot

ci:test

TEST_BUNDLES=true npm run coverage
npm i onecolor

Metadata

Downloads