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
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
5 Stars
17 Commits
2 Forks
3 Watching
29 Branches
1 Contributors
Updated on 14 Oct 2021
JavaScript (92.5%)
Vue (7.5%)
Cumulative downloads
Total Downloads
Last day
187.5%
69
Compared to previous day
Last week
29.1%
324
Compared to previous week
Last month
7.7%
1,074
Compared to previous month
Last year
-32.6%
13,668
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
no SAST tool detected
Details
Reason
Found 0/17 approved changesets -- score normalized to 0
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
111 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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