MCPcopy Index your code
hub / github.com/NobyDa/Script / ipaSize

Function ipaSize

IPA-Installer/IPA-Installer.js:83–90  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

81
82
83function ipaSize(url) {
84 return new Promise((r, e) => {
85 $.http({ method: "head", url: url, policy: "DIRECT", }, (e, h, d) => {
86 r(h && h.status == 200 && `${((h.headers["Content-Length"] || 0) / 1000 / 1000).toFixed(2)}`)
87 });
88 setTimeout(() => r(), 1000)
89 });
90}
91
92function urlArgs(str) {
93 return Object.fromEntries(

Callers 1

IPA-Installer.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected