JSPM

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

Generate color based on the given string (using HSL color space and SHA256).

Package Exports

  • color-hash
  • color-hash/dist/color-hash.js
  • color-hash/dist/esm.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 (color-hash) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Color Hash

Generate color based on the given string.

Demo

https://zenozeng.github.io/color-hash/demo/

Usage

Deno

import ColorHash from "https://deno.land/x/color_hash@v2.0.0/mod.ts"

Node.js

npm install color-hash
import ColorHash from 'color-hash'

or

const ColorHash = require('color-hash').default;