{"id":13907245,"url":"https://github.com/IonicaBizau/git-stats-importer","last_synced_at":"2025-07-18T05:31:01.058Z","repository":{"id":27072150,"uuid":"30538563","full_name":"IonicaBizau/git-stats-importer","owner":"IonicaBizau","description":":chart_with_upwards_trend: Imports your commits from a repository into git-stats history.","archived":false,"fork":false,"pushed_at":"2025-02-13T19:38:14.000Z","size":74,"stargazers_count":115,"open_issues_count":2,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-27T18:46:25.323Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":null,"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/IonicaBizau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"ionicabizau","patreon":"ionicabizau","open_collective":"ionicabizau","custom":"https://www.buymeacoffee.com/h96wwchmy"}},"created_at":"2015-02-09T14:04:54.000Z","updated_at":"2025-05-24T08:44:18.000Z","dependencies_parsed_at":"2025-05-17T04:02:41.865Z","dependency_job_id":"5b79ace6-7234-4f2d-974f-4816ecf88e38","html_url":"https://github.com/IonicaBizau/git-stats-importer","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/IonicaBizau/git-stats-importer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fgit-stats-importer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fgit-stats-importer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fgit-stats-importer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fgit-stats-importer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IonicaBizau","download_url":"https://codeload.github.com/IonicaBizau/git-stats-importer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IonicaBizau%2Fgit-stats-importer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265705298,"owners_count":23814417,"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":["hacktoberfest"],"created_at":"2024-08-06T23:01:50.926Z","updated_at":"2025-07-18T05:31:01.038Z","avatar_url":"https://github.com/IonicaBizau.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ionicabizau","https://patreon.com/ionicabizau","https://opencollective.com/ionicabizau","https://www.buymeacoffee.com/h96wwchmy","https://www.buymeacoffee.com/H96WwChMy","https://www.patreon.com/ionicabizau","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=RVXDDLKKLQRJW"],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003c!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --\u003e\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n# `$ git-stats-importer`\n\n [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/git-stats-importer.svg)](https://www.npmjs.com/package/git-stats-importer) [![Downloads](https://img.shields.io/npm/dt/git-stats-importer.svg)](https://www.npmjs.com/package/git-stats-importer) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/@johnnyb?utm_source=github\u0026utm_medium=button\u0026utm_term=johnnyb\u0026utm_campaign=github)\n\n\u003ca href=\"https://www.buymeacoffee.com/H96WwChMy\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png\" alt=\"Buy Me A Coffee\"\u003e\u003c/a\u003e\n\n\n\n\n\n\n\n\u003e Imports your commits from a repository into git-stats history.\n\n\n\n\n\n\nThis tool imports commits into the [`git-stats`](https://github.com/IonicaBizau/git-stats) commit history. If you like to import all your commits from BitBucket and GitHub, check out the [Repository Downloader project](https://github.com/IonicaBizau/repository-downloader).\n\n\n\n\n\n\n\n\n\n\n\n\n## :cloud: Installation\n\nYou can install the package globally and use it as command line tool:\n\n\n```sh\n# Using npm\nnpm install --global git-stats-importer\n\n# Using yarn\nyarn global add git-stats-importer\n```\n\n\nThen, run `git-stats-importer --help` and see what the CLI tool can do.\n\n\n```\n$ git-stats-importer --help\nUsage: git-stats-importer [options]\n\nOptions:\n  -f, --find-repos \u003cpath\u003e  If this option is provided, the importer will\n                           search for repositories in the provided path\n                           (recursively).\n  -d, --delete             Delete the commits from selected repositories.\n  -e, --emails \u003cemails\u003e    Comma separated emails you want to include in the\n                           import process. By default it's the\n                           $GIT_AUTHOR_EMAIL value.\n  -h, --help               Displays this help.\n  -v, --version            Displays version information.\n\nExamples:\n  git-stats-importer # imports the commits from the current repository\n  git-stats-importer --delete # deletes the commits from the current repo\n  git-stats-importer --find-repos ~/github # searches for repositories in the ~/github dir\n  git-stats-importer --delete --find-repos ~/github # deletes the commits from the ~/github dir\n\nDocumentation can be found at https://github.com/IonicaBizau/git-stats-importer\n```\n\n\n\n\n\n\n\n\n\n\n\n\n\n## :clipboard: Example\n\n\n\nHere is an example how to use this package as library. To install it locally, as library, you can use `npm install git-stats-importer` (or `yarn add git-stats-importer`):\n\n\n\n```js\n// Dependencies\nvar GitStatsImporter = require(\"git-stats-importer\");\n\n// Start importing\nvar importer = GitStatsImporter({\n    // If true, it will delete these commits\n    delete: false\n\n    // The path to the project/projects directory\n  , path: \"~/some-project\"\n\n    // If true, it will import all the repositories found\n    // in the provided path\n  , recursive: false\n\n    // A list with the emails\n  , emails: [\n        \"alice@example.com\"\n      , \"bob@example.com\"\n    ]\n});\n\n// Output for git folders\nimporter.on(\"gitFolder\", function (dir) {\n    /* do something when a git folder is found */\n});\n\n// Listen for import\nimporter.on(\"import\", function (data) {\n    /* do something when a commit is imported */\n});\n\n// Listen for import\nimporter.on(\"error\", function (err, data) {\n    /* do something when errors occur */\n});\n\n// Listen for delete\nimporter.on(\"delete\", function (data) {\n    /* do something on delete */\n});\n\n// Listen for finish\nimporter.on(\"finish\", function (data) {\n    /* do something on finish */\n});\n```\n\n\n\n\n\n\n\n\n\n\n\n\n## :question: Get Help\n\nThere are few ways to get help:\n\n\n\n 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.\n 2. For bug reports and feature requests, open issues. :bug:\n 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:\n\n\n\n\n\n\n\n## :memo: Documentation\n\nFor full API reference, see the [DOCUMENTATION.md][docs] file.\n\n\n\n\n\n\n\n\n\n\n\n\n## :yum: How to contribute\nHave an idea? Found a bug? See [how to contribute][contributing].\n\n\n## :sparkling_heart: Support my projects\nI open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,\nthis takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it).\n\nHowever, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:\n\n\n - Starring and sharing the projects you like :rocket:\n - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:\n - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:\n - [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).\n - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`\n\n    ![](https://i.imgur.com/z6OQI95.png)\n\n\nThanks! :heart:\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## :scroll: License\n\n[MIT][license] © [Ionică Bizău][website]\n\n\n\n\n\n\n[license]: /LICENSE\n[website]: https://ionicabizau.net\n[contributing]: /CONTRIBUTING.md\n[docs]: /DOCUMENTATION.md\n[badge_patreon]: https://ionicabizau.github.io/badges/patreon.svg\n[badge_amazon]: https://ionicabizau.github.io/badges/amazon.svg\n[badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg\n[badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg\n[patreon]: https://www.patreon.com/ionicabizau\n[amazon]: http://amzn.eu/hRo9sIZ\n[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=RVXDDLKKLQRJW\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIonicaBizau%2Fgit-stats-importer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FIonicaBizau%2Fgit-stats-importer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIonicaBizau%2Fgit-stats-importer/lists"}