Installations
npm install grunt-git-authors
Developer Guide
Typescript
No
Module System
N/A
Node Version
5.9.1
NPM Version
3.7.3
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
scottgonzalez
Download Statistics
Total Downloads
821,408
Last Day
807
Last Week
2,357
Last Month
13,995
Last Year
135,034
GitHub Statistics
16 Stars
29 Commits
5 Forks
3 Watching
1 Branches
4 Contributors
Bundle Size
1.83 kB
Minified
878.00 B
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
821,408
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
2
grunt-git-authors
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.
Grunt compatibility
v1.1.0+ is compatible with Grunt 0.4. If you're using Grunt 0.3, use v1.0.0.
Grunt API
Tasks
authors
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
update-authors
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
update-contributors
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
Config
authors.order
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});
authors.prior
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});
Node API
This module can also be used directly via require( "grunt-git-authors" )
.
getAuthors( options, callback )
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 ofName <email>
.
updateAuthors( options, callback )
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.
updatePackageJson( options, callback )
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.
Mailmap
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.
License
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
- Info: project has a license file: LICENSE.txt:0
- Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0
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
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
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