Methods
-
<static> download( path, override, simulate, callback ) → {Promise.<path>}
-
Description
Download the file to a specific fileParameters
Name Type Description pathstring absolute path to save the mod to. overrideboolean Should the file be overwritten if it already exists? Defaults to false. simulateboolean Doesn't download a file it just tries to find the proper website. Used for testing. callbackfunction 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 callbackfunction Optional callback to use as alternative to Promise categoriesarray <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 callbackfunction Optional callback to use as alternative to Promise categoriesarray <optional> [3] Array of categories to get the Dependencies for. @see CurseForgeAPI.DEPENDENCY_TYPE Returns
Details