Have ideas to improve npm?Join in the discussion! »

    mvn-artifact-name-parser
    TypeScript icon, indicating that this package has built-in type declarations

    6.0.0 • Public • Published

    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

    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

    1,102

    Version

    6.0.0

    License

    MIT

    Unpacked Size

    5.13 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar