ral-hex-converter
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Color converter (RAL, HEX)

Convert RAL color codes to HEX codes. Data table this gist.

Installation

npm install --save ral-hex-converter

Usage

const converter = require('ral-hex-converter')
 
const RAL_COLOR = converter.toRal(5025) // '#2A6478' ('RAL5025')
const HEX_CODE = converter.toHex('#C35831') // 'RAL2013'  ('#C35831')
 
const HEX_PALETTE = converter.hex // Return RAL palette in HEX codes
const RAL_PALETTE = converter.ral // Return RAL palette in RAL colors

Contributing

If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit the issues page.

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i ral-hex-converter

    Weekly Downloads

    5

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    16.1 kB

    Total Files

    7

    Last publish

    Collaborators

    • unkingbk