Gathering detailed insights and metrics for vue-cli-plugin-git-describe
Gathering detailed insights and metrics for vue-cli-plugin-git-describe
Gathering detailed insights and metrics for vue-cli-plugin-git-describe
Gathering detailed insights and metrics for vue-cli-plugin-git-describe
npm install vue-cli-plugin-git-describe
Typescript
Module System
Node Version
NPM Version
JavaScript (92.5%)
Vue (7.5%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
5 Stars
17 Commits
2 Forks
2 Watchers
29 Branches
1 Contributors
Updated on Oct 14, 2021
Latest Version
1.0.0
Package Id
vue-cli-plugin-git-describe@1.0.0
Unpacked Size
121.41 kB
Size
108.83 kB
File Count
10
NPM Version
6.4.1
Node Version
10.15.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This Vue CLI plugin calls git-describe with the provided arguments on the working directory or any other directory and parses the output to individual components. On compilation time the git-describe information will be injected so that it can be used in, for example, browser served applications which have no access to the local file system.
Available from npm:
1$ vue add git-describe
This will ask a few questions and will install the plugin.
Tests are not included in the npm package — clone the git repository to run tests.
git-describe uses the node git-describe module.
During compilation, the variable variableName
, default GIT_DESCRIBE
, is replaced with the
git-describe object.
1$ vue create test-app && cd test-app
1$ vue add git-describe
GIT_DESCRIBE
, to your code.1console.log('App version', GIT_DESCRIBE.raw);
Outputs:
1App version c6bd20d-dirty
git-describe
has the following options available in the vue.config.js
file:
1module.exports = { 2 pluginOptions: { 3 gitDescribe: { 4 variableName: 'GIT_DESCRIBE' // The compile-time global constant varialbe name to use in the code. 5 } 6 } 7}
1{ 2 dirty: false, 3 hash: 'g3c9c15b', 4 distance: 6, 5 tag: 'v2.1.0-beta', 6 semver: SemVer, // SemVer instance, see https://github.com/npm/node-semver 7 suffix: '6-g3c9c15b', 8 raw: 'v2.1.0-beta-6-g3c9c15b', 9 semverString: '2.1.0-beta+6.g3c9c15b' 10}
See git-describe for more information about the usage of the git-describe package and the reason to include the optional semver package.
Tests can be run by cloning the repository and running the following command.
1$ npm install 2$ npm test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/17 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
119 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More