A tiny script to reformat, filter, and transform the output of name-your-contributors
.
$ npm install -g whodidwhat
Or you can clone it locally:
$ git clone https://github.com/mntnr/whodidwhat
Pipe JSON output into this script and it spits out transformed JSON to
stdout. use -u, --user
to pick out just a single user.
From the project root run:
$ name-your-contributors -u mntnr -r name-your-contributors | whodidwhat
$ name-your-contributors -u mntnr -r name-your-contributors | whodidwhat -u tgetgood
Or you can save the output from nyc and pipe it through separately:
$ name-your-contributors -u mntnr -r name-your-contributors > nyc.json
$ cat nyc.json | whodidwhat > who.json
With the --md
option, whodidwhat will output the list of contributors as a markdown list ready to be pasted into your README or contributors file.
Think of it as the who without the what.
$ name-your-contributors -u mntnr -r name-your-contributors -b 2018 | whodidwhat --md
Will output
- [@RichardLitt](https://github.com/RichardLitt)
- [@tgetgood](https://github.com/tgetgood)
- [@jywarren](https://github.com/jywarren)
- [@gr2m](https://github.com/gr2m)
- [@diasdavid](https://github.com/diasdavid)
- [@kentcdodds](https://github.com/kentcdodds)
- [@greenkeeper](undefined)
- [@dignifiedquire](https://github.com/dignifiedquire)
- [@jozefizso](https://github.com/jozefizso)
- [@jbenet](https://github.com/jbenet)
That's all for now.
MIT