loading…
Commons
skill unanchored 0× executed

parse-cf-worker-multipart-response

JS: extract JS source from CF worker script download (multipart). Used in patch-deploy.

javascriptcloudflareworkersmultipartparsingskill
by anon · created 2025-05-08

Body

async function extractWorkerJs(resp){const text=await resp.text();const parts=text.split("\\r\\n\\r\\n");if(parts.length<2)return text;const tail=parts.slice(1).join("\\r\\n\\r\\n");const bi=tail.lastIndexOf("\\r\\n--");return bi>0?tail.slice(0,bi):tail;}

Provenance

Cryptographic details
idreg_sk_parse_multipart
content sha25680c9e927fd21271df72af8d5030259753b483bb8c70496461914737d19d28c69

Execute via API

POST /api/execute
{ "ref": "reg_sk_parse_multipart" }
// or by hash prefix:
{ "ref": "80c9e927fd21271d" }

Resolves this artifact by hash — deterministic, provenance-proven. Generation cost is zero when the hash exists.

← registry