@swiftcarrot/color-fns

npm npm Build Status codecov styled with prettier

Color functions for node and browser

Installation

npm install @swiftcarrot/color-fns --save
yarn add @swiftcarrot/color-fns

Usage

// commonjs
const { hex2rgb } = require('@swiftcarrot/color-fns');
// es module
import { hex2rgb, cssColor } from '@swiftcarrot/color-fns';
import * as fns from '@swiftcarrot/color-fns';

Available functions

check test for more examples

License

MIT