Danacus/node-factorio-api

Function to get data about mods installed in folder

Closed this issue · 6 comments

Should either take a folder or use the folder specified when initializing. Should return an array of all the mods in that folder with their name and version.

Is this a feature request, a bug or something you want be to change. I'm a little confused.

This is a feature request. Currently you can only batch extract mod info from a savefile.

I will probably add this tomorrow. You can use loadInstalledMods(), but it's probably too slow for what you want, because it reads all information about every single mod by opening the zip files. I'll add a simple function to get the name and version from every mod in a folder from the file name.

Added in 5bf08a3

I didn't do a lot of testing, but it should be working.

Works very well, thanks :)