{"id":23201080,"url":"https://github.com/codedotjs/gictivity","last_synced_at":"2025-04-05T09:26:22.284Z","repository":{"id":57156530,"uuid":"61664444","full_name":"CodeDotJS/gictivity","owner":"CodeDotJS","description":":tada: Activities of a github user.","archived":false,"fork":false,"pushed_at":"2016-07-11T15:24:15.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T10:08:11.059Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeDotJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-21T20:20:10.000Z","updated_at":"2023-09-08T17:11:49.000Z","dependencies_parsed_at":"2022-09-19T08:31:13.856Z","dependency_job_id":null,"html_url":"https://github.com/CodeDotJS/gictivity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fgictivity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fgictivity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fgictivity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fgictivity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeDotJS","download_url":"https://codeload.github.com/CodeDotJS/gictivity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247314572,"owners_count":20918863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-18T15:13:49.718Z","updated_at":"2025-04-05T09:26:22.264Z","avatar_url":"https://github.com/CodeDotJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gictivity\n\n\u003e Activities of a github user.\n\n[![Build Status](https://travis-ci.org/CodeDotJS/gictivity.svg?branch=master)](https://travis-ci.org/CodeDotJS/gictivity)\n\n## Install\n\n```\n$ npm install --save gictivity\n```\n\n## Usage\n\n- `Pinned Repos`\n\n```js\nconst gictivity = require('gictivity');\n\ngictivity.pin('CodeDotJS').then(repo =\u003e {\n\tconsole.log(repo);\n\t/*\n\t{\n\t\t'repo1': instavim,\n\t\t'repo2': facebook-mass-comments,\n\t\t'repo3': feross/nagger,\n\t\t'repo4': pagespeed-score-cli,\n\t\t'repo5': sindresorhus/fast-cli\n\t}\n\t*/\n});\n```\n\n__```TOTAL PUBLIC CONTRIBUTIONS```__\n\n- `Last Year :`\n\n```js\nconst gictivity = require('gictivity');\n\ngictivity.year('CodeDotJS').then(count =\u003e {\n\tconsole.log(count);\n\t// =\u003e 1,793 contributions in the last year\n});\n```\n\n__```CONTRIBUTION PERIOD```__\n\n`Also available for` __`3 days`__, __`week`__ and __`month`__\n\n- `For 1 day :`\n\n```js\nconst gictivity = require('gictivity');\n\ngictivity.day('CodeDotJS').then(contributions =\u003e {\n\tconsole.log(contributions);\n\t// =\u003e { commits: '9 commits', pulls: null, issues: null }\n})\n```\n\n__```NOTE :```__ `returns` __```null```__ `if values are not set or found in user's github profile`\n\n## API\n\n### __```gictivity.pin('username')```__\n\n- `returns all the pinned repositories's names.`\n\n### __```gictivity.day('username')```__\n\n- `returns total contribution made within a day.`\n\n### __```gictivity.days('username')```__\n\n- `returns total contributions made within 3 days.`\n\n### __```gictivity.week('username')```__\n\n- `returns total contribution made within a week.`\n\n### __```gictivity.month('username')```__\n\n- `returns total contribution made within a month.`\n\n### __```gictivity.year('username')```__\n\n- `returns total contribution made by a github user in a year.`\n\n### __```username```__\n\n### __```TYPE :```__ __```string```__\n\n## Related\n\n- [stafo](https://github.com/CodeDotJS/stafo) : Get the total number of stars and forks on a particular github repository.\n\n## License\n\nMIT \u0026copy; [Rishi Giri](http://rishigiri.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Fgictivity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedotjs%2Fgictivity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Fgictivity/lists"}