Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/shroudedcode/devstats

:bar_chart: A CLI application that fetches stats from developer sites
https://github.com/shroudedcode/devstats

cli cli-application daily-report statistics stats

Last synced: 3 months ago
JSON representation

:bar_chart: A CLI application that fetches stats from developer sites

Lists

README

        

# devstats

# ![](https://user-images.githubusercontent.com/29176678/44999492-f17d4a80-afbd-11e8-965d-feb70142ac01.png)

> A CLI application that fetches stats from developer sites.

[![][npm-badge]][npm-link]

**devstats** is a CLI application written in TypeScript that fetches statistics from developer sites like StackOverflow, WakaTime, and GitHub and displays them nicely.

## Installation

Install it globally using:

```console
$ npm install -g devstats
```

Or if you're using Yarn:

```console
$ yarn global add devstats
```

## Usage

Add accounts from the [supported sites](#supported-sites):

```console
$ devstats add https://github.com/shroudedcode
```

Display your daily report:

```console
$ devstats
```

Display your daily report and switch between days using your keyboard:

```console
$ devstats -i
```

### Full list of commands

From `devstats --help`:

```console
Display the daily report for the current day:

$ devstats

Display a summary of the current week:

$ devstats -w or devstats --week

Display a summary of the last days:

$ devstats -d or devstats --days

Switch between days interactively:

$ devstats -i or devstats --interactive

Add an account:

$ devstats add
$ devstats add github shroudedcode

$ devstats add
$ devstats add https://github.com/shroudedcode

Remove an account:

$ devstats remove
$ devstats remove stackoverflow 6662225

$ devstats remove
$ devstats remove https://stackoverflow.com/users/6662225
```

### Supported sites

This is a list of sites currently supported by devstats. You can add your account using the name in parentheses.

- [GitHub](https://github.com) (`github`)
- [GitLab](https://gitlab.com) (`gitlab`)
- [StackOverflow](https://stackoverflow.com) (`stackoverflow`)
- [WakaTime](https://wakatime.com) (`wakatime`)
- [Hackerrank](https://hackerrank.com) (`hackerrank`)
- [Reverse Engineering SE](https://reverseengineering.stackexchange.com) (`reverseengineering`)
- [Code::Stats](https://codestats.net) (`codestats`)

Your favorite site is not on the list? Feel free to add support yourself and open a pull request.

## License

MIT © [Niklas Higi](https://shroudedcode.com)

[npm-link]: https://www.npmjs.com/package/devstats
[npm-badge]: https://img.shields.io/npm/v/devstats.svg?style=flat-square