color-hash
Version:
Generate color based on the given string (using HSL color space and SHA256).
15 lines (13 loc) • 332 B
Plain Text
start:
python3 -m http.server 3000
test:
deno test
build:
mkdir -p dist
deno bundle mod.ts > dist/bundle.js
npx tsc --target es2015 --allowJs dist/bundle.js --outDir tmp
cp tmp/bundle.js dist/esm.js
rm -rf tmp
npx tsc --module commonjs --allowJs dist/bundle.js --outDir tmp
cp tmp/bundle.js dist/color-hash.js
rm -rf tmp