Kwulers

A JavaScript library for converting colours between various formats.

Installation

Kwulers can be used in both the browser, or as a Node module.

Browser

Download the latest release and copy kwulers/dist/kwulers.js or kwulers/dist/kwulers.min.js to your project. Include Kwulers in your HTML:
<script type="text/javascript" src="kwulers.min.js"></script>

Node

Install with npm:
npm install kwulers

Usage


Once included, access kwulers with window.kwulers or simply kwulers.

Kwulers also allows for ES6 imports. Import the whole library:

import kwulers from 'kwulers';

Or import only the methods you need:

import { getRGBFromHex } from 'kwulers';

Available Methods


Method Argument Example
Colour Colour Name Hex RGB HSL