6.1.1 • Published 3 years ago
mvn-artifact-download v6.1.1
mvn-artifact-download
Install
$ npm install --save mvn-artifact-downloadUsage
import download from 'mvn-artifact-download';
download('org.apache.commons:commons-lang3:3.4');
// Promise that resolves to destination filename
download({
groupId: 'org.apache.commons',
artifactId: 'commons-lang3',
version: '3.4',
});
// Promise that resolves to destination filename
download('org.apache.commons:commons-lang3:3.4', '/path/to/destination/dir');
// Promise that resolves to destination filename
download(
'org.apache.commons:commons-lang3:3.4',
null,
'http://alternative.repo'
);
// Promise that resolves to destination filename
download(
'org.apache.commons:commons-lang3:3.4',
null,
'http://alternative.repo',
{ timout: 1000 } // with optional timeout
);
// Promise that resolves to destination filenameAPI
download(artifactName, destinationFolder, repository, fetchOptions)
Downloads an artifact from the repository
artifactName
Type: string | Artifact
destinationFolder
Type: string
Default: process.cwd()
repository
Type: string
fetchOptions
An optional object containing
Attribute: timeout number req/res timeout in ms
Attribute: agent http.Agent allows custom proxy, certificate etc.
License
MIT © Sigurd Fosseng
6.1.0
3 years ago
6.1.1
3 years ago
6.0.0
5 years ago
5.1.1
5 years ago
5.1.0
6 years ago
5.0.1
6 years ago
5.0.0
6 years ago
4.1.0
6 years ago
4.0.0
8 years ago
3.1.0
8 years ago
3.0.2
8 years ago
3.0.1
9 years ago
3.0.0
9 years ago
2.0.1
9 years ago
2.0.0
9 years ago
1.1.5
10 years ago
1.1.4
10 years ago
1.1.3
10 years ago
1.1.2
10 years ago
1.1.1
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago