/whodidwhat

A tiny script to reformat, filter, and transform the output of name-your-contributors.

Primary LanguageJavaScriptMIT LicenseMIT

Who Did What

A tiny script to reformat, filter, and transform the output of name-your-contributors.

Install

$ npm install -g whodidwhat

Or you can clone it locally:

$ git clone https://github.com/mntnr/whodidwhat

Use

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

List of Contributors

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.

License

MIT