6.1.1 • Published 12 months ago
mvn-artifact-download v6.1.1
mvn-artifact-download
Install
$ npm install --save mvn-artifact-download
Usage
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 filename
API
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
12 months ago
6.1.1
12 months ago
6.0.0
3 years ago
5.1.1
3 years ago
5.1.0
4 years ago
5.0.1
4 years ago
5.0.0
4 years ago
4.1.0
4 years ago
4.0.0
6 years ago
3.1.0
6 years ago
3.0.2
6 years ago
3.0.1
7 years ago
3.0.0
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.1.5
8 years ago
1.1.4
8 years ago
1.1.3
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago