{"id":46185640,"url":"https://github.com/nurrony/gtni","last_synced_at":"2026-04-02T00:40:31.106Z","repository":{"id":2631346,"uuid":"44050067","full_name":"nurrony/gtni","owner":"nurrony","description":"Install your all npm dependencies recursively with gtni while you are doing git clone, fetch or pull","archived":false,"fork":false,"pushed_at":"2026-02-17T14:27:32.000Z","size":1789,"stargazers_count":16,"open_issues_count":21,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-03-03T00:06:29.414Z","etag":null,"topics":["clone","fetch","git","install","npm"],"latest_commit_sha":null,"homepage":"https://nurrony.github.io/gtni","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/nurrony.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-10-11T11:48:06.000Z","updated_at":"2024-01-10T16:22:28.000Z","dependencies_parsed_at":"2024-02-06T05:25:46.287Z","dependency_job_id":"a622e15b-c71a-48da-a9b9-833b690babd3","html_url":"https://github.com/nurrony/gtni","commit_stats":null,"previous_names":["nmrony/gtni"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/nurrony/gtni","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurrony%2Fgtni","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurrony%2Fgtni/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurrony%2Fgtni/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurrony%2Fgtni/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nurrony","download_url":"https://codeload.github.com/nurrony/gtni/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurrony%2Fgtni/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30827495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-22T05:45:47.827Z","status":"ssl_error","status_checked_at":"2026-03-22T05:45:39.030Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["clone","fetch","git","install","npm"],"created_at":"2026-03-02T22:52:41.546Z","updated_at":"2026-04-02T00:40:31.094Z","avatar_url":"https://github.com/nurrony.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gtni\n\nInstall your npm dependencies recursively with gtni as soon you clone, fetch or pull a git repo.\n\n[![version][npm-version]][npm-url] [![Downloads][npm-total-downloads]][npm-url] [![Travis branch][travis-badge]][travis-url] [![Greenkeeper badge][gk-badge]][gk-url] [![semantic-release][sembadge]][npm-url]\n\n\u003e **gtni** automatically choose right package manager for a git repository based on lock file in a directory with `package.json`.\n\n## Installation\n\n```sh\n[sudo] npm install -g gtni\n# or\n[sudo] yarn global add gtni\n```\n\n## Usage\n\n```sh\n$gtni --help\n\nUsage: gtni \u003ccommand\u003e [options]\n\nCommands:\n  pull   git pull and install npm dependencies\n  fetch  git fetch and install npm dependencies\n  clone  clone a git repository and install npm dependencies\n\nOptions:\n  -h, --help     Show help  [boolean]\n  -v, --version  Show version number  [boolean]\n\nExamples:\n  [NODE_ENV=\u003cenv\u003e] gtni pull [git-options]  git pull and install npm packages\n\n\n\n# Sub command options\n\n$ gtni \u003ccommand\u003e -h\nOptions:\n  -h, --help, --help  Show help  [boolean]\n  --branch, -b        remote branch name to clone  [string] [default: false]\n  --debug, -d         Show debug output  [boolean] [default: false]\n  -v, --version       Show version number  [boolean]\n\n  Note: here you can pass any flags for the corresponding git command\n```\n\nI need your help to improve this module. Please send me your valuable suggestions and advices. I am all ears.\n\n## Todo List\n\n- [x] Very basic stage of pull support\n- [x] Pull support for most used `git pull` options\n- [x] Fetch support for most used `git fetch` options\n- [x] Support for `git clone`\n- [x] `NODE_ENV` support for `npm/yarn install`\n- [x] Show warnings during dependencies installation\n- [x] Support for read and install dependencies when project has multiple `package.json` files\n- [x] Install npm modules diffing `git tree` for various branch after doing git operations supported by `gtni`\n- [x] Add support to pass custom `NODE_ENV` values for `npm install`\n- [x] Choose right package manager automatically for a repository\n\n[npm-badge]: https://nodei.co/npm/gtni.png?compact=true\n[npm-version]: https://img.shields.io/npm/v/gtni.svg?style=flat-square\n[npm-dependencies]: https://img.shields.io/david/nmrony/gtni.svg?style=flat-square\n[npm-dev-dependencies]: https://img.shields.io/david/dev/nmrony/gtni.svg?style=flat-square\n[npm-total-downloads]: https://img.shields.io/npm/dm/gtni.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/gtni\n[github-url]: https://github.com/nmrony/gtni\n[travis-url]: https://travis-ci.org/nmrony/gtni\n[travis-badge]: https://img.shields.io/travis/nmrony/gtni/master.svg?style=flat-square\n[yarn-url]: https://yarnpkg.com/\n[gk-badge]: https://badges.greenkeeper.io/nmrony/gtni.svg\n[gk-url]: https://greenkeeper.io/\n[sembadge]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnurrony%2Fgtni","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnurrony%2Fgtni","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnurrony%2Fgtni/lists"}