https://github.com/panther-js/mavencc
A simple maven central client.
https://github.com/panther-js/mavencc
client maven
Last synced: over 1 year ago
JSON representation
A simple maven central client.
- Host: GitHub
- URL: https://github.com/panther-js/mavencc
- Owner: panther-js
- License: mit
- Created: 2017-03-17T11:47:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-07T00:06:56.000Z (over 7 years ago)
- Last Synced: 2025-02-20T20:17:43.928Z (over 1 year ago)
- Topics: client, maven
- Language: JavaScript
- Homepage:
- Size: 39.1 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mavencc
[](https://travis-ci.org/panther-js/mavencc)
[](https://david-dm.org/panther-js/mavencc)
[](https://npmjs.org/package/mavencc)
A simple maven central client.
| | Project Info |
| --------------- | ------------- |
| License: | MIT |
| Build: | npm |
| Engines: | Node.js 4.x, 6.x, 8.x |
## Installation
```bash
npm install mavencc -S
```
## Usage
```javascript
const mavencc = require('mavencc');
mavencc.basicArtifactSearch('wildfly-swarm', 5)
.then(console.log)
.catch(error => console.log(error));
mavencc.artifactSearch('wildfly-swarm', 5)
.then(console.log)
.catch(error => console.log(error));
mavencc.listVersions('org.wildfly.swarm', 'wildfly-swarm', 5)
.then(console.log)
.catch(error => console.log(error));
mavencc.artifactByClassname('junit', 5)
.then(console.log)
.catch(error => console.log(error));
mavencc.artifactByFullyClassname('org.specs.runner.JUnit', 5)
.then(console.log)
.catch(error => console.log(error));
mavencc.artifactBySHA1('35379fb6526fd019f331542b4e9ae2e566c57933', 5)
.then(console.log)
.catch(error => console.log(error));
mavencc.searchTags('sbtplugin', 5)
.then(console.log)
.catch(error => console.log(error));
mavencc.downloadArtifact('com/jolira/guice/3.0.0/guice-3.0.0.pom', '/tmp/guice.pom')
.then(console.log)
.catch(error => console.log(error));
```
## You can use to
* A basic artifact search.
* Search any artifactId irrespective of groupId
* List all versions of an artifact.
* Search for all artifacts in a groupId.