UNPKG

tiny-essentials

Version:

Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.

18 lines 806 B
/** * Creates encoding and decoding functions for custom characters. * * This function returns two pairs of functions: one for encoding and decoding * the characters to/from their hexadecimal representations and another for encoding * and decoding components (without the `/` character). * * @param {Array<string>} chars - The list of characters to encode/decode. * @returns {Record<string, any>} An object containing: * - `encode`: Function that encodes characters to hexadecimal format. * - `decode`: Function that decodes hexadecimal values back to characters. */ export function create(chars: Array<string>): Record<string, any>; export const encode: any; export const decode: any; export const encodeComponents: any; export const decodeComponents: any; //# sourceMappingURL=escape.d.mts.map