# mvn-artifact-name-parser

> Parse java artifact names

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

## Install

```sh
npm install mvn-artifact-name-parser
pnpm add mvn-artifact-name-parser
yarn add mvn-artifact-name-parser
bun add mvn-artifact-name-parser
```

## 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 | 0 |
| Unpacked size | 5 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-name-parser
- 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-name-parser

## Recent versions

- 6.1.2 (latest) — 2026-04-11
- 6.1.0 — 2023-05-16
- 6.0.0 — 2021-06-03
- 5.0.1 — 2020-05-28
- 5.0.0 — 2020-05-18
- 4.1.0 — 2019-11-28
- 4.0.0 — 2018-09-02
- 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.4 — 2016-04-11
- 1.0.3 — 2016-03-02
- 1.0.2 — 2015-12-21
- 1.0.1 — 2015-12-20
- … 1 more at https://npm.io/package/mvn-artifact-name-parser/versions

## README

# mvn-artifact-name-parser

Parses maven coordinate strings of the following format

```
groupId:artifactId:version
groupId:artifactId:extension:version
groupId:artifactId:extension:classifier:version
```

## Install

```
$ npm install --save mvn-artifact-name-parser
```

## Usage

```javascript
import parse from 'mvn-artifact-name-parser';

parse('org.apache.commons:commons-lang3:3.4');
/*=>
{
  groupId: 'org.apache.commons',
  artifactId: 'commons-lang3',
  version: '3.4'
}
*/

parse('org.apache.commons:commons-lang3:jar:3.4');
/*=>
{
  groupId: 'org.apache.commons',
  artifactId: 'commons-lang3',
  extension: 'jar',
  version: '3.4'
}
*/

parse('org.apache.commons:commons-lang3:jar:3.4-SNAPSHOT');
/*=>
{
  groupId: 'org.apache.commons',
  artifactId: 'commons-lang3',
  extension: 'jar',
  version: '3.4',
  isSnapShot: true
}
*/
```

## License

MIT © [Sigurd Fosseng](http://github.com/laat)

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