Gathering detailed insights and metrics for grunt-git-describe
Gathering detailed insights and metrics for grunt-git-describe
Gathering detailed insights and metrics for grunt-git-describe
Gathering detailed insights and metrics for grunt-git-describe
npm install grunt-git-describe
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
41 Stars
76 Commits
24 Forks
1 Watchers
1 Branches
6 Contributors
Updated on Mar 13, 2024
Latest Version
2.4.4
Package Id
grunt-git-describe@2.4.4
Unpacked Size
11.24 kB
Size
4.12 kB
File Count
8
NPM Version
5.7.1
Node Version
8.5.0
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
1
3
Describes git commit
This plugin requires Grunt ~0.4.0
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
1npm install grunt-git-describe --save-dev
One the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
1grunt.loadNpmTasks('grunt-git-describe');
In your project's Gruntfile, add a section named git-describe
to the data object passed into grunt.initConfig()
.
1grunt.initConfig({
2 "git-describe": {
3 "options": {
4 // Task-specific options go here.
5 },
6 "your_target": {
7 // Target-specific file lists and/or options go here.
8 },
9 },
10})
Note that since this is a multi-task you have to have at least one target defined for
git-describe
(otherwise the task won't run)
Type: String
Default value: '.'
A string value that is used to do set the current working directory when spawning the git
command
Type: String
Default value: undefined
A string value that is used as commitish
for git
. Default is to use HEAD
.
Type: String
Default value: {%=tag%}-{%=since%}-{%=object%}{%=dirty%}
A string value used to format the result of this task
Type: String
Default value: undefined
Value for the --match command line option. If set, only consider tags matching this glob pattern, excluding the "refs/tags/" prefix.
Type: boolean
Default value: true
A boolean that allows Grunt to keep going if there's an error in this task. This is useful if your build isn't guaranteed to always be run from within a Git repo.
If you would like to save or otherwise use the retun value, use grunt.event.emit
. Here is an example:
1grunt.registerTask('saveRevision', function() { 2 grunt.event.once('git-describe', function (rev) { 3 grunt.log.writeln("Git Revision: " + rev); 4 grunt.option('gitRevision', rev); 5 }); 6 grunt.task.run('git-describe'); 7});
The rev
object returned makes several specific properties available, in addition to the full toString
description.
1grunt.event.once('git-describe', function (rev) { 2 grunt.log.writeln("Git rev tag: " + rev.tag); 3 grunt.log.writeln("Git rev since: " + rev.since); 4 grunt.log.writeln("Git rev object: " + rev.object); // The 6 character commit SHA by itself 5 grunt.log.writeln("Git rev dirty: " + rev.dirty); // A flag denoting whether all local changes are committed 6});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 4/26 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- 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
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
43 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