Methods
-
<static> download( path, override, simulate, callback ) → {Promise.<path>}
-
Description
Download the file to a specific fileParameters
Name Type Description path
string absolute path to save the mod to. override
boolean Should the file be overwritten if it already exists? Defaults to false. simulate
boolean Doesn't download a file it just tries to find the proper website. Used for testing. callback
function Optional callback to use as alternative to Promise. Returns
Details
-
<static> getDependencies( callback [, categories ] ) → {Promise.<Array.<Mod>, Error>}
-
Description
Get all dependencies required by this mod.Parameters
Name Type Attributes Default Description callback
function Optional callback to use as alternative to Promise categories
array <optional> [1,3] Array of categories to get the Dependencies for. @see CurseForgeAPI.DEPENDENCY_TYPE Returns
Details
-
<static> getDependenciesFiles( callback [, categories ] ) → {Promise.<Array.<ModFile>, Error>}
-
Description
Get all dependencies required by this mod.Parameters
Name Type Attributes Default Description callback
function Optional callback to use as alternative to Promise categories
array <optional> [3] Array of categories to get the Dependencies for. @see CurseForgeAPI.DEPENDENCY_TYPE Returns
Details