UNPKG

serverless-spy

Version:

CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.

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