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

6.1.0 • Public • Published

mvn-artifact-filename

Install

$ npm install --save mvn-artifact-filename

Usage

import createFilename from 'mvn-artifact-filename';

let artifact;

artifact = {
  groupId: 'org.apache.commons',
  artifactId: 'commons-lang3',
  version: '3.4',
};
createFilename(artifact);
//=> "commons-lang3-3.4.jar"

artifact = {
  groupId: 'org.apache.commons',
  artifactId: 'commons-lang3',
  extension: 'war',
  version: '3.4',
};
createFilename(artifact);
//=> "commons-lang3-3.4.war"

artifact = {
  groupId: 'org.apache.commons',
  artifactId: 'commons-lang3',
  extension: 'war',
  classifier: 'tests',
  version: '3.4',
};
createFilename(artifact);
//=> "commons-lang3-3.4-tests.war"

artifact = {
  groupId: 'org.apache.commons',
  artifactId: 'commons-lang3',
  version: '3.4',
  isSnapShot: true,
  snapShotVersion: '123',
};
createFilename(artifact);
//=> "commons-lang3-3.4-123.jar"

License

MIT © Sigurd Fosseng

Readme

Keywords

Package Sidebar

Install

npm i mvn-artifact-filename

Weekly Downloads

559

Version

6.1.0

License

MIT

Unpacked Size

5.97 kB

Total Files

7

Last publish

Collaborators

  • laat