Class NodeJsDownloader
java.lang.Object
org.jdrupes.builder.ext.nodejs.NodeJsDownloader
Manages cached node js downloads.
-
Constructor Summary
ConstructorsConstructorDescriptionNodeJsDownloader(ResourceProvider provider, Path baseDir) Initializes a new node js downloader. -
Method Summary
Modifier and TypeMethodDescriptionnpmExecutable(String version) Returns the path to the npm executable for the given version.
-
Constructor Details
-
NodeJsDownloader
Initializes a new node js downloader.- Parameters:
provider- the providerbaseDir- the base dir
-
-
Method Details
-
npmExecutable
Returns the path to the npm executable for the given version.- Parameters:
version- the version- Returns:
- the path
-