JSPM

git-generate-authors

1.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q26712F
  • License WTFPL

Generate AUTHORS file based on Git's history

Package Exports

  • git-generate-authors
  • git-generate-authors/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (git-generate-authors) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

git-generate-authors

Generate AUTHORS file based on Git's history

Usage

You can run this on any machine with node and Git installed, using:

npx git-generate-authors [options]

Options

Short Long Description Default
-o --output Output file AUTHORS
-r --repo Repository path Current working directory
-s --sort Sorting parameter. Can be first-commit, last-commit, commits, name or email first-commit
--keep-bots If passed, the bots will not be removed from the history
--skip-mailmap If passed, Git will not use the .mailmap file for aliasing users

Known issues

The error handling is not poor - it's entirely missing. Thus, if Git is missing or finds a problem half-way, you will just get an empty or half-filled list of authors.

The bot filtering is pretty simple and naïve, so it's possible not all bots get removed.