Socket
Socket
Sign inDemoInstall

mvn-artifact-url

Package Overview
Dependencies
11
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mvn-artifact-url

Create url for maven artifacts


Version published
Weekly downloads
1.5K
decreased by-17.31%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

mvn-artifact-url

Install

$ npm install --save mvn-artifact-url

Usage

import url from 'mvn-artifact-url';

let artifact = {
  groupId: 'org.apache.commons',
  artifactId: 'commons-lang3',
  version: '3.4',
};

url(artifact).then((resolved) => {
  resolved;
  //=> 'https://repo1.maven.org/maven2/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar'
});

url(artifact, 'http://localhost/').then((resolved) => {
  resolved;
  //=> 'http://localhost/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar'
});

// SNAPSHOT releases gets resolved.
url({
  groupId: 'org.apache.commons',
  artifactId: 'commons-lang3',
  version: '3.4',
  isSnapShot: true,
}).then((resolved) => {
  resolved;
  //=> 'https://repo1.maven.org/maven2/org/apache/commons/commons-lang3/3.4-SNAPSHOT/commons-lang3-3.4-1-23.jar'
});

License

MIT © Sigurd Fosseng

Keywords

FAQs

Last updated on 16 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc