包详细信息

shelljs-plugin-authors

tanem3.3kMIT2.0.162

A ShellJS plugin for generating a nicely formatted list of authors.

authors, git, plugin, script

自述文件

shelljs-plugin-authors

npm version build status coverage status npm downloads shelljs-plugin

A ShellJS plugin for generating a nicely formatted list of authors.

Usage

Let's assume that we're inside a git repo, and the output of git shortlog -se gives us something like:

    24  Andrew Powlowski <Andrew_Powlowski@yahoo.com>
    39  Gregorio Heaney <Gregorio.Heaney43@yahoo.com>
    55  Miller Reichel <Miller_Reichel@yahoo.com>
    70  Mervin Graham <Mervin69@yahoo.com>
    99  Hallie Paucek <Hallie.Paucek@yahoo.com>

We want to generate a nicely formatted list of authors sorted alphabetically by author name. There are two ways to do that with this module, first you can use it as a ShellJS plugin:

const shell = require('shelljs')
require('shelljs-plugin-authors')
const authors = shell.authors()
shell.echo(authors.stdout)
/*
Andrew Powlowski <Andrew_Powlowski@yahoo.com>
Gregorio Heaney <Gregorio.Heaney43@yahoo.com>
Miller Reichel <Miller_Reichel@yahoo.com>
Mervin Graham <Mervin69@yahoo.com>
Hallie Paucek <Hallie.Paucek@yahoo.com>
*/

Or you can use it via the CLI:

$ shelljs-authors
Andrew Powlowski <Andrew_Powlowski@yahoo.com>
Gregorio Heaney <Gregorio.Heaney43@yahoo.com>
Miller Reichel <Miller_Reichel@yahoo.com>
Mervin Graham <Mervin69@yahoo.com>
Hallie Paucek <Hallie.Paucek@yahoo.com>

If you'd prefer the list be sorted by number of commits per author, pass the -n option:

const shell = require('shelljs')
require('shelljs-plugin-authors')
const authors = shell.authors('-n')
shell.echo(authors.stdout)
/*
Hallie Paucek <Hallie.Paucek@yahoo.com>
Mervin Graham <Mervin69@yahoo.com>
Miller Reichel <Miller_Reichel@yahoo.com>
Gregorio Heaney <Gregorio.Heaney43@yahoo.com>
Andrew Powlowski <Andrew_Powlowski@yahoo.com>
*/
$ shelljs-authors -n
Hallie Paucek <Hallie.Paucek@yahoo.com>
Mervin Graham <Mervin69@yahoo.com>
Miller Reichel <Miller_Reichel@yahoo.com>
Gregorio Heaney <Gregorio.Heaney43@yahoo.com>
Andrew Powlowski <Andrew_Powlowski@yahoo.com>

API

Plugin

Options

  • -n - Optional Sort the list by number of commits per author.

Example

shell.authors('-n')

CLI

$ shelljs-authors -h

  Usage: shelljs-authors [options]

  Generate a nicely formatted list of authors

  Options:

    -V, --version   output the version number
    -n, --numbered  Sort by number of commits per author
    -h, --help      output usage information

  Examples:

    $ shelljs-authors
    $ shelljs-authors -n

Installation

Plugin

$ npm i -D shelljs shelljs-plugin-authors

CLI

$ npm i -g shelljs shelljs-plugin-authors

License

MIT

更新日志

Changelog

v2.0.162 (2024-03-27)

Full Changelog

:house: Internal

v2.0.161 (2024-02-03)

Full Changelog

:house: Internal

v2.0.160 (2023-12-15)

Full Changelog

:house: Internal

v2.0.159 (2023-11-21)

Full Changelog

:house: Internal

v2.0.158 (2023-11-12)

Full Changelog

:house: Internal

v2.0.157 (2023-10-13)

Full Changelog

:house: Internal

v2.0.156 (2023-10-07)

Full Changelog

:house: Internal

v2.0.155 (2023-09-26)

Full Changelog

:house: Internal

v2.0.154 (2023-09-16)

Full Changelog

:house: Internal

v2.0.153 (2023-09-09)

Full Changelog

:house: Internal

v2.0.152 (2023-09-01)

Full Changelog

:house: Internal

v2.0.151 (2023-08-18)

Full Changelog

:house: Internal

v2.0.150 (2023-08-11)

Full Changelog

:house: Internal

v2.0.149 (2023-08-05)

Full Changelog

:house: Internal

v2.0.148 (2023-07-20)

Full Changelog

:house: Internal

v2.0.147 (2023-06-30)

Full Changelog

:house: Internal

v2.0.146 (2023-06-18)

Full Changelog

:house: Internal

v2.0.145 (2023-06-10)

Full Changelog

:house: Internal

v2.0.144 (2023-06-02)

Full Changelog

:house: Internal

v2.0.143 (2023-05-26)

Full Changelog

:house: Internal

v2.0.142 (2023-05-20)

Full Changelog

:house: Internal

v2.0.141 (2023-05-12)

Full Changelog

:house: Internal

v2.0.140 (2023-05-05)

Full Changelog

:house: Internal

v2.0.139 (2023-04-29)

Full Changelog

:house: Internal

v2.0.138 (2023-04-24)

Full Changelog

:house: Internal

v2.0.137 (2023-03-27)

Full Changelog

:house: Internal

v2.0.136 (2023-03-10)

Full Changelog

:house: Internal

v2.0.135 (2023-03-03)

Full Changelog

:house: Internal

v2.0.134 (2023-02-24)

Full Changelog

:house: Internal

v2.0.133 (2023-02-19)

Full Changelog

:house: Internal

v2.0.132 (2023-02-17)

Full Changelog

:house: Internal

v2.0.131 (2023-02-12)

Full Changelog

:house: Internal

v2.0.130 (2023-02-04)

Full Changelog

:house: Internal

v2.0.129 (2023-01-20)

Full Changelog

:house: Internal

v2.0.128 (2023-01-13)

Full Changelog

:house: Internal

v2.0.127 (2023-01-06)

Full Changelog

:house: Internal

v2.0.126 (2022-12-23)

Full Changelog

:house: Internal

v2.0.125 (2022-12-18)

Full Changelog

:house: Internal

v2.0.124 (2022-12-10)

Full Changelog

:house: Internal

v2.0.123 (2022-11-27)

Full Changelog

:house: Internal

v2.0.122 (2022-11-19)

Full Changelog

:house: Internal

v2.0.121 (2022-11-11)

Full Changelog

:house: Internal

v2.0.120 (2022-10-29)

Full Changelog

:house: Internal

v2.0.119 (2022-10-09)

Full Changelog

:house: Internal

v2.0.118 (2022-09-18)

Full Changelog

:house: Internal

v2.0.117 (2022-09-09)

Full Changelog

:house: Internal

v2.0.116 (2022-08-22)

Full Changelog

:house: Internal

v2.0.115 (2022-08-14)

Full Changelog

:house: Internal

v2.0.114 (2022-08-07)

Full Changelog

:house: Internal

v2.0.113 (2022-07-29)

Full Changelog

:house: Internal

v2.0.112 (2022-07-15)

Full Changelog

:house: Internal

v2.0.111 (2022-07-08)

Full Changelog

:house: Internal

v2.0.110 (2022-07-02)

Full Changelog

:house: Internal

v2.0.109 (2022-06-28)

Full Changelog

:house: Internal

v2.0.108 (2022-06-18)

Full Changelog

:house: Internal

v2.0.107 (2022-06-10)

Full Changelog

:house: Internal

v2.0.106 (2022-06-03)

Full Changelog

:house: Internal

v2.0.105 (2022-04-22)

Full Changelog

:house: Internal

v2.0.104 (2022-04-01)

Full Changelog

:house: Internal

v2.0.103 (2022-03-25)

Full Changelog

:house: Internal

v2.0.102 (2022-03-21)

Full Changelog

:house: Internal

v2.0.101 (2022-03-11)

Full Changelog

:house: Internal

v2.0.100 (2022-03-08)

Full Changelog

:house: Internal

v2.0.99 (2022-02-18)

Full Changelog

:house: Internal

v2.0.98 (2022-02-11)

Full Changelog

:house: Internal

v2.0.97 (2022-02-04)

Full Changelog

:house: Internal

v2.0.96 (2022-01-28)

Full Changelog

:house: Internal

v2.0.95 (2022-01-21)

Full Changelog

:house: Internal

v2.0.94 (2022-01-16)

Full Changelog

:house: Internal

v2.0.93 (2022-01-08)

Full Changelog

:house: Internal

v2.0.92 (2021-12-17)

Full Changelog

:house: Internal

v2.0.91 (2021-12-03)

Full Changelog

:house: Internal

v2.0.90 (2021-11-12)

Full Changelog

:house: Internal

v2.0.89 (2021-11-05)

Full Changelog

:house: Internal

v2.0.88 (2021-10-22)

Full Changelog

:house: Internal

v2.0.87 (2021-10-15)

Full Changelog

:house: Internal

v2.0.86 (2021-10-08)

Full Changelog

:house: Internal

v2.0.85 (2021-10-03)

Full Changelog

:house: Internal

v2.0.84 (2021-09-24)

Full Changelog

:house: Internal

v2.0.83 (2021-09-17)

Full Changelog

:house: Internal

v2.0.82 (2021-09-13)

Full Changelog

:house: Internal

v2.0.81 (2021-09-03)

Full Changelog

:house: Internal

v2.0.80 (2021-08-29)

Full Changelog

:house: Internal

v2.0.79 (2021-08-19)

Full Changelog

:house: Internal

v2.0.78 (2021-08-09)

Full Changelog

:house: Internal

v2.0.77 (2021-08-01)

Full Changelog

:house: Internal

v2.0.76 (2021-07-23)

Full Changelog

:house: Internal

v2.0.75 (2021-07-16)

Full Changelog

:house: Internal

v2.0.74 (2021-07-12)

Full Changelog

:house: Internal

v2.0.73 (2021-07-04)

Full Changelog

:house: Internal

v2.0.72 (2021-06-25)

Full Changelog

:house: Internal

v2.0.71 (2021-06-18)

Full Changelog

:house: Internal

v2.0.70 (2021-06-13)

Full Changelog

:house: Internal

v2.0.69 (2021-05-22)

Full Changelog

:house: Internal

v2.0.68 (2021-05-14)

Full Changelog

:house: Internal

v2.0.67 (2021-04-22)

Full Changelog

:house: Internal

v2.0.66 (2021-04-04)

Full Changelog

:house: Internal

v2.0.65 (2021-03-27)

Full Changelog

:house: Internal

v2.0.64 (2021-03-21)

Full Changelog

:house: Internal

v2.0.63 (2021-03-13)

Full Changelog

:house: Internal

v2.0.62 (2021-03-02)

Full Changelog

:house: Internal

v2.0.61 (2021-02-20)

Full Changelog

:house: Internal

v2.0.60 (2021-02-14)

Full Changelog

:house: Internal

v2.0.59 (2021-02-03)

Full Changelog

:house: Internal

v2.0.58 (2021-01-22)

Full Changelog

:house: Internal

v2.0.57 (2021-01-08)

Full Changelog

:house: Internal

v2.0.56 (2020-12-18)

Full Changelog

:house: Internal

v2.0.55 (2020-12-04)

Full Changelog

:house: Internal

v2.0.54 (2020-11-27)

Full Changelog

:house: Internal

v2.0.53 (2020-11-23)

Full Changelog

:house: Internal

v2.0.52 (2020-10-09)

Full Changelog

:house: Internal

v2.0.51 (2020-10-02)

Full Changelog

:house: Internal

v2.0.50 (2020-09-25)

Full Changelog

:house: Internal

v2.0.49 (2020-09-18)

Full Changelog

:house: Internal

v2.0.48 (2020-09-11)

Full Changelog

:house: Internal

v2.0.47 (2020-09-04)

Full Changelog

:house: Internal

v2.0.46 (2020-08-28)

Full Changelog

:house: Internal

v2.0.45 (2020-08-21)

Full Changelog

:house: Internal

v2.0.44 (2020-08-14)

Full Changelog

:house: Internal

v2.0.43 (2020-08-07)

Full Changelog

:house: Internal

v2.0.42 (2020-07-31)

Full Changelog

:house: Internal

v2.0.41 (2020-07-24)

Full Changelog

:house: Internal

v2.0.40 (2020-07-17)

Full Changelog

:house: Internal

v2.0.39 (2020-07-10)

Full Changelog

:house: Internal

v2.0.38 (2020-07-03)

Full Changelog

:house: Internal

v2.0.37 (2020-06-26)

Full Changelog

:house: Internal

v2.0.36 (2020-06-20)

Full Changelog

:house: Internal

v2.0.35 (2020-06-12)

Full Changelog

:house: Internal

v2.0.34 (2020-06-01)

Full Changelog

:house: Internal

v2.0.33 (2020-05-22)

Full Changelog

:house: Internal

v2.0.32 (2020-05-17)

Full Changelog

:house: Internal

v2.0.31 (2020-05-02)

Full Changelog

:house: Internal

v2.0.30 (2020-04-24)

Full Changelog

:house: Internal

v2.0.29 (2020-04-17)

Full Changelog

:house: Internal

v2.0.28 (2020-04-11)

Full Changelog

:house: Internal

v2.0.27 (2020-04-04)

Full Changelog

:house: Internal

v2.0.26 (2020-03-30)

Full Changelog

:house: Internal

v2.0.25 (2020-03-13)

Full Changelog

:house: Internal

v2.0.24 (2020-03-07)

Full Changelog

:house: Internal

v2.0.23 (2020-02-29)

Full Changelog

:house: Internal

v2.0.22 (2020-02-21)

Full Changelog

:house: Internal

v2.0.21 (2020-02-13)

Full Changelog

:house: Internal

v2.0.20 (2019-12-18)

Full Changelog

:house: Internal

v2.0.19 (2019-10-12)

Full Changelog

:house: Internal

v2.0.18 (2019-09-28)

Full Changelog

:house: Internal

v2.0.17 (2019-09-22)

Full Changelog

:house: Internal

v2.0.16 (2019-09-21)

Full Changelog

:house: Internal

v2.0.15 (2019-09-17)

Full Changelog

:house: Internal

v2.0.14 (2019-08-24)

Full Changelog

:house: Internal

v2.0.13 (2019-08-10)

Full Changelog

:house: Internal

v2.0.12 (2019-07-23)

Full Changelog

:house: Internal

  • #25 Update changelog generation script (@tanem)

v2.0.11 (2019-07-16)

Full Changelog

:house: Internal

v2.0.10 (2019-06-29)

Full Changelog

:house: Internal

v2.0.9 (2019-06-07)

Full Changelog

:house: Internal

v2.0.8 (2019-06-05)

Full Changelog

:house: Internal

v2.0.7 (2019-06-05)

Full Changelog

:house: Internal

v2.0.6 (2018-09-27)

Full Changelog

:house: Internal

v2.0.5 (2018-09-15)

Full Changelog

:house: Internal

v2.0.4 (2018-09-11)

Full Changelog

:house: Internal

v2.0.3 (2018-09-08)

Full Changelog

:house: Internal

v2.0.2 (2018-09-02)

Full Changelog

:house: Internal

v2.0.1 (2018-09-02)

Full Changelog

:house: Internal

v2.0.0 (2018-08-27)

Full Changelog

:rocket: Enhancement

v1.1.2 (2018-08-27)

Full Changelog

:rocket: Enhancement

v1.1.1 (2018-08-26)

Full Changelog

:memo: Documentation

v1.1.0 (2018-08-25)

Full Changelog

:rocket: Enhancement

  • #9 Add sorting by number of commits per author (@tanem)

v1.0.2 (2018-08-23)

Full Changelog

:bug: Bug Fix

v1.0.1 (2018-08-22)

Full Changelog

:memo: Documentation

v1.0.0 (2018-08-22)

:bug: Bug Fix

:memo: Documentation

:house: Internal