github-diary

0.0.5 • Public • Published

github-diary

reflect over your life on GitHub. generate a GitHub history json file and upload it to create a stats card!


partial diary screenshot

install

  • npm install [--save-dev|--global] github-diary, or
  • docker pull cdaringe/github-diary

usage

to generate your diary, run github-diary via one of the methods below, and upload your diary.json to diary.cdaringe.com. no private data is captured/persisted on the site. you are welcome to run the ui manually via the ui project as well.

  Usage
    $ github-diary <args>

  Options
    --login, -l GitHub login user
    --token, -t GitHub token. If none provided, one will be generated for you
                on _each run_. It is strongly recommended to generate and use
                your own token in advance.  https://github.com/settings/tokens
    --endpoint, -e GitHub endpoint. Defaults to GitHub.com

  Examples
    $ github-diary --login cdaringe [--token GITHUB_TOKEN]

github-diary can be used in a few different ways:

  • CLI mode
    • via a node executable, npx github-diary <args>
    • via docker,
docker run -it \
  --rm \
  -v $PWD/output:/output \
  cdaringe/github-diary \
  -o /output/diary.json \
  --login <github-login/username> \
  [--token <github-token>]

for the latest CLI args, please run github-diary --help

  • library mode
    • via a node library, var diary = require('github-diary')

the source code is sufficiently small that i recommend you simply view src/index to see how to use it as a lib. diary.main(...) is your entrypoint, and likely all you'd want.

/github-diary/

    Package Sidebar

    Install

    npm i github-diary

    Weekly Downloads

    1

    Version

    0.0.5

    License

    MIT

    Unpacked Size

    270 kB

    Total Files

    11

    Last publish

    Collaborators

    • cdaringe