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

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

    5.1.1 • Public • Published

    mvn-artifact-url

    travis npm

    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

    Install

    npm i mvn-artifact-url

    DownloadsWeekly Downloads

    1,211

    Version

    5.1.1

    License

    MIT

    Unpacked Size

    13.6 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar