1.0.6 • Published 3 years ago

maven-repo-index v1.0.6

Weekly downloads
1
License
ISC
Repository
github
Last release
3 years ago

maven-repo-index

A tool for managing the local repository.

Installation

npm install maven-repo-index

Usage

Include into your JavaScript app using:

const mavenRepo = require("maven-repo-index");
mavenRepo.listAll("/your/repo/url");

API

APIWhat it does
.listAll(repoFolderUrl,respondType)list all the jar info in the repository

listAll

listAll(repoFolderUrl,respondType) provide the local repository url, it will response the list of dependencies

  • respondType="object"

response object

{
  "groupId-A": {
    "artifactId-A": {
      "version.1.0.0": {
        "groupId": "group id",
        "artifactId": "artifact id",
        "version": "version",
        "filePath": "absolute url",
        "fileName": "jar full name",
        "relatePath": "relative rul"
      }
    }
  }
}
  • respondType="array" is defualt type if it not provided

response array

[
  {
    "groupId": "group id",
    "artifactId": "artifact id",
    "version": "version",
    "filePath": "absolute url",
    "fileName": "jar full name",
    "relatePath": "relative rul"
  }
]
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago