# mvn-artifact-url

> Create url for maven artifacts

Latest version **6.1.2** (published 2026-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install mvn-artifact-url
pnpm add mvn-artifact-url
yarn add mvn-artifact-url
bun add mvn-artifact-url
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 6.1.2 |
| Published | 2026-04-11 |
| First published | 2015-12-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=12 |
| Dependencies | 3 |
| Unpacked size | 13.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Sigurd Fosseng |
| Maintainers | laat |
| Keywords | maven, artifact |

## Links

- npm: https://www.npmjs.com/package/mvn-artifact-url
- Repository: https://github.com/laat/mvn-dl
- Homepage: https://github.com/laat/mvn-dl#readme
- Issues: https://github.com/laat/mvn-dl/issues
- npm.io page: https://npm.io/package/mvn-artifact-url

## Dependencies (3)

- [xml2js](https://npm.io/package/xml2js.md) ^0.5.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1
- [mvn-artifact-filename](https://npm.io/package/mvn-artifact-filename.md) ^6.1.2

## Recent versions

- 6.1.2 (latest) — 2026-04-11
- 6.1.0 — 2023-05-16
- 6.0.0 — 2021-06-03
- 5.1.1 — 2021-03-07
- 5.1.0 — 2020-05-28
- 5.0.0 — 2020-05-18
- 4.1.0 — 2019-11-28
- 4.0.0 — 2018-09-02
- 3.0.2 — 2018-02-04
- 3.0.1 — 2017-09-08
- 3.0.0 — 2017-09-07
- 2.0.1 — 2017-05-13
- 2.0.0 — 2017-05-13
- 1.0.5 — 2016-08-10
- 1.0.4 — 2016-04-11
- … 4 more at https://npm.io/package/mvn-artifact-url/versions

## README

# mvn-artifact-url

## Install

```
$ npm install --save mvn-artifact-url
```

## Usage

```javascript
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](http://github.com/laat)

---
_Source: https://npm.io/package/mvn-artifact-url · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
