View which programming languages a user works with, sorted by greatest number of bytes.
- Node 14, or Docker
If you have Docker installed locally, simply run
make get_user_stats username="[GITHUB_USERNAME]"
The output of this command can be found in `/dist/[GITUB_USERNAME].txt
Example: make get_user_stats username="elliottregan"
If you have Node 14 installed, you can install required dependencies and generate the output with
npm install
npm run get-stats [GITHUB_USERNAME]
Example: npm run get-stats elliottregan
Github limits the number of unauthenticated API calls, and you may hit this limit with very active users. To increase your rate limit, you will need to create an OAuth Token in your Github Account settings for use in this project:
- Create a new OAuth Token on this page: https://github.com/settings/tokens (no special permissions are required)
- Duplicate
.env.example
(found in the root of this project) and rename as.env
- Paste your OAuth Token in place of
GITHUB_OAUTH_TOKEN
Testing framework provided by Jest. Commands are:
npm run test
Develop with tests: or
npm run test:dev
These commands can also be run through Docker with
make test
or
make test_develop