### Updated WebPack Lazy Loaded JS File Extractor

Last time I write this it was using a bunch of janky regex in Python to extract it. Then I realized that I could just run the function itself with Node JS. Duh. Here is the updated script. All you have to do is paste in the function, update the `functionName` and `prefix` vars, and you're good to go.

```js
prefix = "https://cdn.loom.com/assets/"
functionName = "u"
data = `
u = function(e) {
        return "js/" + (({
            42: "AdminSuspendAccountModal",
            104: "IndiaPaymentsCheckoutContainer"
        })[e] || e) + "-" + ({
            42: "2e3994ffd458bbeb64ec",
            104: "af9ddbe96f0b7ab9c617"
        })[e] + ".js"
    }
`
numbers = [...data.matchAll(/(\d{1,10}): "/g)].map((e)=>e[1])
numbers = numbers.filter((item,index) => numbers.indexOf(item) === index);
eval(data)
f = eval(functionName)
output = ""
for (var i = 0;i<numbers.length;i++){
    output = output + prefix+f(numbers[i])+"\n"
}
console.log(output)
```

---

A user made a better version and shared it

Guys! Here is the dechunker.js tool : [mapperplus/dechunker.js at main · midoxnet/mapperplus · GitHub](https://github.com/midoxnet/mapperplus/blob/main/dechunker.js "https://github.com/midoxnet/mapperplus/blob/main/dechunker.js") it extracts chunk names from a given JS file ... it needs (axios, process) and node.js installed. It works like this : node ./dechunker.js JS_FILE_URL Note: This is just a first release and may not work in some cases, so please let me know if there are any suggestions .. You could later use it to download all .js/.js.map files etc...
