JSPM

@iamponsiva/color-utils

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q18511F
  • License MIT

Tiny utilities to convert and generate colors (hex <-> rgb, random color).

Package Exports

  • @iamponsiva/color-utils
  • @iamponsiva/color-utils/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@iamponsiva/color-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@iamponsiva/color-utils

Tiny utilities to convert and generate colors (hex <-> rgb, random color).

Install

npm i @iamponsiva/color-utils

Usage (CommonJS)

const { toHex } = require('@iamponsiva/color-utils');
console.log(toHex(255,0,0)); // #ff0000