nexus-repo

package for interacting with a nexus repository

Usage no npm install needed!

<script type="module">
  import nexusRepo from 'https://cdn.skypack.dev/nexus-repo';
</script>

README

nexus-repo

  • promise-based interaction with a nexus repository
  • in the early days there will be frequent updates
  • tested on Nexus Repository Manager OSS 2.14.9-01

Commands

  • list-repos
  • pom-model
  • retrieve-artifact
  • search-maven-central

Installation

Using npm:

 $ npm install nexus-repo --save

Usage

In Node.js:

var {nexusRepo} = require("nexus-repo")

nexusRepo({command:'search-maven-central', searchMavenCentral:'log4j'})

NOTE

  • you can place a file in your home directory called .nexusRepo.json where you can place common information and/or credentials. For example:
{
    "username" : "myusername",
    "password" : "mypassword",
    "repoUrl" : "http://mylocal.domain.com/nexus/",
    "verbose" : false
}

docs

How to publish

  • // after git committing
  • npm version patch
  • npm publish --access public