UNPKG

@aws/cloudfront-hosting-toolkit

Version:

CloudFront Hosting Toolkit offers the convenience of a managed frontend hosting service while retaining full control over the hosting and deployment infrastructure to make it your own.

3 lines (2 loc) 165 B
export const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;