{"id":23773495,"url":"https://github.com/beenotung/npm-setup-git","last_synced_at":"2026-04-28T18:03:41.924Z","repository":{"id":174130178,"uuid":"651802493","full_name":"beenotung/npm-setup-git","owner":"beenotung","description":"npm cli tool to setup git repository fields in package.json and .gitignore","archived":false,"fork":false,"pushed_at":"2023-06-10T13:37:44.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-02T08:10:37.117Z","etag":null,"topics":["cli","git-config","git-repository","gitignore","npm-package","package-json","setup"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/npm-setup-git","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beenotung.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-10T06:23:01.000Z","updated_at":"2023-06-10T13:30:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a64bd03-f720-457f-a44d-76d1ee29ab65","html_url":"https://github.com/beenotung/npm-setup-git","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"0bba6f7acc33225e66e0ec21007eb324035895ac"},"previous_names":["beenotung/npm-setup-git"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/beenotung/npm-setup-git","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beenotung%2Fnpm-setup-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beenotung%2Fnpm-setup-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beenotung%2Fnpm-setup-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beenotung%2Fnpm-setup-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beenotung","download_url":"https://codeload.github.com/beenotung/npm-setup-git/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beenotung%2Fnpm-setup-git/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32392304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","git-config","git-repository","gitignore","npm-package","package-json","setup"],"created_at":"2025-01-01T05:40:52.171Z","updated_at":"2026-04-28T18:03:41.907Z","avatar_url":"https://github.com/beenotung.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# npm-setup-git\n\nnpm cli tool to setup git repository fields in package.json and .gitignore\n\n[![npm Package Version](https://img.shields.io/npm/v/npm-setup-git)](https://www.npmjs.com/package/npm-setup-git)\n\n## Introduction\n\nIn the previous version of npm cli, it auto setup the git repository fields in the `package.json` file as below if the current working directory is a git repository. However recent version of npm cli no longer setup it automatically.\n\nThis cli package helps you setup the fields in `package.json`, and it also auto setup some commonly ignored files in the `.gitignore` file.\n\nExample git repository fields in `package.json`:\n\n```json\n{\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/beenotung/npm-setup-git.git\"\n  },\n  \"homepage\": \"https://github.com/beenotung/npm-setup-git#readme\",\n  \"bugs\": {\n    \"url\": \"https://github.com/beenotung/npm-setup-git/issues\"\n  }\n}\n```\n\n## Installation (optional)\n\n```bash\nnpm i -g npm-setup-git\n```\n\n## Usage\n\nUsage with global installation:\n\n```bash\nnpm-setup-git\n```\n\nUsage without installation:\n\n```bash\nnpx -y npm-setup-git\n```\n\n## License\n\nThis project is licensed with [BSD-2-Clause](./LICENSE)\n\nThis is free, libre, and open-source software. It comes down to four essential freedoms [[ref]](https://seirdy.one/2021/01/27/whatsapp-and-the-domestication-of-users.html#fnref:2):\n\n- The freedom to run the program as you wish, for any purpose\n- The freedom to study how the program works, and change it so it does your computing as you wish\n- The freedom to redistribute copies so you can help others\n- The freedom to distribute copies of your modified versions to others\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeenotung%2Fnpm-setup-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeenotung%2Fnpm-setup-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeenotung%2Fnpm-setup-git/lists"}