silverwolf-x/project / packages /next /src /shared /lib /encode-uri-path.ts
silverwolf-x's picture
download
raw
132 Bytes
export function encodeURIPath(file: string) {
return file
.split('/')
.map((p) => encodeURIComponent(p))
.join('/')
}

Xet Storage Details

Size:
132 Bytes
·
Xet hash:
c54193f31a476f107f71d5c9dfcdccf6b1bfcb156e6648ff75e5e395f96e794d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.