Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

mvn-artifact-name-parser

3.0.1 • Public • Published

mvn-artifact-name-parser

travis npm

Install

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

Usage

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

install

npm i mvn-artifact-name-parser

Downloadsweekly downloads

789

version

3.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability