FunctionsfromUnicodeToHexcodefromUnicodeToHexcode CallablefromUnicodeToHexcode(unicode: string, strip?: boolean): HexcodeThis function will convert a literal emoji Unicode character into a dash separated hexadecimal codepoint. Unless false is passed as the 2nd argument, zero width joinerβs and variation selectors are removed. import { fromUnicodeToHexcode } from 'emojibase';fromUnicodeToHexcode('π¨βπ©βπ§βπ¦'); // 1F468-1F469-1F467-1F466fromUnicodeToHexcode('π¨βπ©βπ§βπ¦', false); // 1F468-200D-1F469-200D-1F467-200D-1F466
This function will convert a literal emoji Unicode character into a dash separated hexadecimal codepoint. Unless
false
is passed as the 2nd argument, zero width joinerβs and variation selectors are removed.