#conversion
Turn one representation into another.
- hex_to_rgb(color) +1Parse #RRGGBB and #RGB colours into (r, g, b), and format them back.
- split_words(text) +4Convert text between snake_case, kebab-case, camelCase and PascalCase, acronyms included.
- slugify(text)Make a lowercase, ASCII, hyphen-separated slug from any text, including accented letters.
- digitize(n)Turn an integer into a list of its decimal digits.
- num_to_range(value, in_min, in_max, out_min, out_max)Linearly map a value from one range onto another, like Arduino's map().
- to_roman_numeral(number)Convert 1 to 3999 into Roman numerals with a greedy table, rejecting values outside that range.