MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / encodeRfc3986

Function encodeRfc3986

utils/s3.ts:51–53  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

49}
50
51function encodeRfc3986(value: string): string {
52 return encodeURIComponent(value).replace(/[!'()*]/g, char => `%${char.charCodeAt(0).toString(16).toUpperCase()}`);
53}
54
55function buildS3Path(...parts: string[]): string {
56 const normalized = parts

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected