@thi.ng/strings
Various string formatting & utility functions
Various string formatting & utility functions
Convert shorthand hex color codes into full
Calculates a given hash for given data
Calculates a given hash of a given blob
Calculates a given hash of a given path
Calculates a SHA-512 for given data
Calculates a SHA-512 for given data
Calculates a SHA-512 of a given blob
Calculates a SHA-512 of a given file. Single package for the browser and node.
Convert uuid string representation into hex string
Determine if a string is a valid CSS color hex
Flatten/unflatten color values from theme with nested objects
Bidirectional conversions between different colors format like RGB, HSL, HSV and HEX
Get tints and shades of a CSS color
Hex string formatters for 4/8/16/24/32/48/64bit words, hexdump formatting of binary data
Web color picker with opacity channel (alpha channel) and custom palette. Supports CSS colors such as rgba() and hex, including #rrggbbaa.
parse a css color string
Convert CSS color names to hex
Create Uint8Array buffers from hexadecimal strings, and vice versa.
Mix two colors together in variable proportion. Opacity is included in the calculations.