11# Absolute Version
22
3- [ ![ npm] ( https://img.shields.io/npm/v/@pact-foundation/ absolute-version.svg )] ( https://www.npmjs.com/package/@pact-foundation /absolute-version )
3+ [ ![ npm] ( https://img.shields.io/npm/v/absolute-version.svg )] ( https://www.npmjs.com/package/absolute-version )
44[ ![ Known Vulnerabilities] ( https://snyk.io/test/github/absolute-version/absolute-version-js/badge.svg?targetFile=package.json )] ( https://snyk.io/test/github/absolute-version/absolute-version-js?targetFile=package.json )
55[ ![ license] ( https://img.shields.io/github/license/absolute-version/absolute-version-js.svg )] ( https://github.com/absolute-version/absolute-version/blob/main/LICENSE )
66
@@ -44,19 +44,19 @@ Since every commit is a different version of your software, have a different ver
4444## Installing
4545
4646```
47- npm install --save-dev @pact-foundation/ absolute-version
47+ npm install --save-dev absolute-version
4848```
4949
5050### CLI
5151
5252```
53- npx @pact-foundation/ absolute-version
53+ npx absolute-version
5454```
5555
5656Or alternatively:
5757
5858```
59- npm install --save-dev @pact-foundation/ absolute-version
59+ npm install --save-dev absolute-version
6060```
6161
6262package.json:
@@ -70,7 +70,7 @@ scripts: {
7070If your tags don't conform to ` vX.Y.Z ` , then you can pass an alternate tag glob:
7171
7272```
73- npx @pact-foundation/ absolute-version --tagGlob '[0-9]*'
73+ npx absolute-version --tagGlob '[0-9]*'
7474```
7575
7676The default is ` 'v[0-9]*' ` . The format for the glob is the same as for ` --match ` in ` git describe ` .
@@ -82,7 +82,7 @@ The default is `'v[0-9]*'`. The format for the glob is the same as for `--match`
8282Returns the ` absolute-version ` as a string, using the current working directory from ` process.cwd() ` .
8383
8484```
85- import { versionFromGitTag } from '@pact-foundation/ absolute-version'
85+ import { versionFromGitTag } from absolute-version'
8686
8787const version = versionFromGitTag();
8888```
@@ -98,7 +98,7 @@ AbsoluteVersionConfig {
9898If your tags don't conform to ` vX.Y.Z ` , then you can pass an alternate glob in the options:
9999
100100```
101- import { versionFromGitTag } from '@pact-foundation/ absolute-version'
101+ import { versionFromGitTag } from 'absolute-version'
102102
103103const version = versionFromGitTag({
104104 tagGlob: '[0-9]*'
0 commit comments