warsman
Displays the most contributing silent hero in the code review
Last updated 4 months ago by jaxx2104 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install warsman 
SYNC missed versions from official npm registry.

warsman

NPM Version CircleCI

Report the most contributor in the code review.

warsman

warsman is the silent hero.

Install

$ npm install warsman
or
$ npm install -g warsman

Usage

JavaScript API

import warsman from 'warsman'

const repo = 'facebook/react'
const token = 'XXXXXXXXXX'
const options = {
  max: 10
}

warsman(repo, token, options).then(results => {
  console.log(results)
  // [ { user: 'jaxx2104', count: 26 },
  // { user: 'foo', count: 23 },
  // { user: 'bar', count: 19 } ]
})

Command Line Interface

Table mode

$ warsman --repo facebook/react --token XXXXXXXXXX

result

┌─────────┬────────────┬───────┐
│ (index) │    user    │ count │
├─────────┼────────────┼───────┤
│    0    │ 'jaxx2104' │  26   │
│    1    │ 'foo'      │  23   │
│    2    │ 'bar'      │  19   │
└─────────┴────────────┴───────┘

Figlet mode

$ warsman --repo facebook/react --token XXXXXXXXXX --figlet Slant

result

       _                ___  _______  __ __
      (_)___ __  ___  _|__ \<  / __ \/ // /
     / / __ `/ |/_/ |/_/_/ // / / / / // /_
    / / /_/ />  <_>  </ __// / /_/ /__  __/
 __/ /\__,_/_/|_/_/|_/____/_/\____/  /_/
/___/

Options

option description
-V, --version output the version number
--u, --url <url> GitHub API URL (default: "https://api.github.com/")
-r, --repo <account/repo> GitHub Repository
-t, --token <token> GitHub Personal Access Token
--max <n> GitHub Max PullRequests
--figlet figlet mode

Current Tags

  • 0.2.0                                ...           latest (4 months ago)

8 Versions

  • 0.2.0                                ...           4 months ago
  • 0.1.6                                ...           5 months ago
  • 0.1.5                                ...           9 months ago
  • 0.1.4                                ...           9 months ago
  • 0.1.3                                ...           10 months ago
  • 0.1.2                                ...           10 months ago
  • 0.1.1                                ...           10 months ago
  • 0.1.0                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 9
Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |