0.0.18 • Published 5 years ago

modpackdl v0.0.18

Weekly downloads
3
License
GPL-3.0-or-later
Repository
github
Last release
5 years ago

ModpackDL

A simple minecraft modpack downloader.

Modlist JSON Object

The Modlist JSON object should be a keyed json object with this structure:

{
	directory: "./myModFolder",
	forgeVersion: "16.45.23282"
	mods: [
		{
			name: "ModName"
			version: "1.7.10"
			url: "http://example.org"
		},
		{
			name: "ModName"
			version: "1.12.2"
			url: "http://example.org"
		}
	]
}

I suggest using an actual json file or hjson file, instead of writing an object by hand, but you can theorically dynamically generate a modlist.
"IGNORE" can be used as an url to have mods that must be added manually (for licensing needs or because the mod itself is not published online). You can also avoid specifying an url entirely.

Usage

var dl = require('modpackdl');
dl.download(modpackJsonObject)

or

var dl = require('modpackdl');
dl.download(modpackJsonObject).then( function(){
	//Your stuff
}.catch(function(){
	//Error handling
})

executeDL() is async, not for lack of trying to download things in a synchronous manner.

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago