UNPKG

@smithy/util-endpoints

Version:
2 lines (1 loc) 140 B
export const uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);