Gathering detailed insights and metrics for grunt-git-authors
Gathering detailed insights and metrics for grunt-git-authors
npm install grunt-git-authors
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
821,408
Last Day
807
Last Week
2,357
Last Month
13,995
Last Year
135,034
16 Stars
29 Commits
5 Forks
3 Watching
1 Branches
4 Contributors
Minified
Minified + Gzipped
Latest Version
3.2.0
Package Id
grunt-git-authors@3.2.0
Size
3.73 kB
NPM Version
3.7.3
Node Version
5.9.1
Cumulative downloads
Total Downloads
Last day
4.7%
807
Compared to previous day
Last week
-43.4%
2,357
Compared to previous week
Last month
27.4%
13,995
Compared to previous month
Last year
14.5%
135,034
Compared to previous year
1
2
A grunt plugin for generating a list of authors from the git history.
Support this project by donating on Gratipay.
This project supports both a Node API and a Grunt API.
v1.1.0+ is compatible with Grunt 0.4. If you're using Grunt 0.3, use v1.0.0.
Generates a list of authors in the form Name <email>
in order of first
contribution.
This task writes its output to the console, not to a file.
You can optionally run this task against a subdirectory:
1grunt authors:path/to/directory
Creates or updates the file AUTHORS.txt
with the list of authors.
You can optionally run this task against a subdirectory (the AUTHORS.txt
file will be placed inside that directory):
1grunt update-authors:path/to/directory
Updates package.json
with the list of authors.
You can optionally run this task against a subdirectory (the package.json
file inside that directory will be used):
1grunt update-contributors:path/to/directory
Define the order of the list of authors. The default ordering is by first
contribution {order: "date"}
. An alternative ordering is by number of
contributions {order: "count"}
.
NOTE: This config value is used for the update-authors
task as well.
1grunt.initConfig({ 2 authors: { 3 order: "count" 4 } 5});
Define a list of authors that contributed prior to the first commit in the repo. This is useful if you've moved from another version control system.
NOTE: This config value is used for the update-authors
task as well.
1grunt.initConfig({ 2 authors: { 3 prior: [ 4 "Jane Smith <jane.smith@example.com>", 5 "John Doe <john.doe@example.com>" 6 ] 7 } 8});
This module can also be used directly via require( "grunt-git-authors" )
.
Gets the list of authors.
options
(Object)
dir
(String): Which directory to inspect for authors (defaults to "."
).priorAuthors
(Array): An array of authors that contributed prior to the first commit in the repo.order
(String): Which criteria to use for ordering the authors. "date"
will order by first contribution; "count"
will order by number of contributions. Defaults to "date"
.callback
(function( error, authors )
): A callback to invoke with the list of authors.
authors
: An array of authors in the form of Name <email>
.Creates or updates an authors file with all authors.
options
(Object)
dir
(String): Which directory to inspect for authors (defaults to "."
).priorAuthors
(Array): An array of authors that contributed prior to the first commit in the repo.order
(String): Which criteria to use for ordering the authors. "date"
will order by first contribution; "count"
will order by number of contributions. Defaults to "date"
.filename
(String): Which file to create (defaults to "AUTHORS.txt"
).banner
(String): Text to place at the top of the file (defaults to "Authors ordered by first contribution"
).callback (
function( error, filename )`): A callback to invoke after writing the file.
filename
: The path of the file that was written.Updates package.json
with all authors.
options
(Object)
dir
(String): Which directory to inspect for authors (defaults to "."
).priorAuthors
(Array): An array of authors that contributed prior to the first commit in the repo.order
(String): Which criteria to use for ordering the authors. "date"
will order by first contribution; "count"
will order by number of contributions. Defaults to "date"
.callback (
function( error )`): A callback to invoke after writing the file.This task respects mailmap, so if you have messy author info in your commits,
you can correct the data in your mailmap and this task with output the cleaned
up information. For more information, about using a mailmap, see the docs for
git-shortlog
or read Shane da Silva's blog post about
Git Shortlog and Mailmap.
Copyright Scott González. Released under the terms of the MIT license.
Support this project by donating on Gratipay.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/29 approved changesets -- score normalized to 0
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
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
Score
Last Scanned on 2025-01-20
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