3.2.0 • Published 5 years ago
@swiftcarrot/color-fns v3.2.0
@swiftcarrot/color-fns
Color functions for node and browser
Installation
npm install @swiftcarrot/color-fns --save
yarn add @swiftcarrot/color-fnsUsage
// 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
cssColor: parse a valid css color value to rgba formathex2hslhex2hsvhex2rgbhsl2hsvhsl2rgbhsv2hexhsv2hslhsv2rgbrgb2hexrgb2hsvrgbargba2hexrgba2rgb
check test for more examples
License
MIT