{"id":23286352,"url":"https://github.com/eyolas/gitlab-download","last_synced_at":"2025-08-21T17:32:18.785Z","repository":{"id":36833083,"uuid":"41139985","full_name":"eyolas/gitlab-download","owner":"eyolas","description":"Download and extract a Gitlab repository from node.","archived":false,"fork":false,"pushed_at":"2022-12-05T02:30:23.000Z","size":132,"stargazers_count":4,"open_issues_count":6,"forks_count":2,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2024-04-26T05:03:08.336Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eyolas.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":"2015-08-21T06:45:55.000Z","updated_at":"2023-03-10T08:05:07.000Z","dependencies_parsed_at":"2023-01-17T05:29:00.086Z","dependency_job_id":null,"html_url":"https://github.com/eyolas/gitlab-download","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyolas%2Fgitlab-download","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyolas%2Fgitlab-download/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyolas%2Fgitlab-download/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyolas%2Fgitlab-download/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eyolas","download_url":"https://codeload.github.com/eyolas/gitlab-download/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230500804,"owners_count":18236052,"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-20T02:11:34.473Z","updated_at":"2024-12-20T02:11:35.030Z","avatar_url":"https://github.com/eyolas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Node.js - gitlab-download\n================\n\n\nEasily download Gitlab repos without any external dependencies such as Git, Tar, Unzip, etc.\n\n\n\nInstallation\n------------\n\n    npm install gitlab-download\n\n\n\nUsage\n-----\n\n### instanciate new GitlabDownload(gitlabUrl, token)\nInstanciate gitlab-download\n```js\nvar GitlabDownload = require('gitlab-download').default;\nvar gitlab = new GitlabDownload('https://mysgitlab.com', 'aze12233zae');\n```\n\n- **gitlabUrl**: \n    - a Github URL string such as `https://mysgitlab.com`\n- **token**: You private token.\n\n### download(params)\n\nDownloads the latest copy of some Gitlab reference (branch, tag, or commit), or the `master` branch by default.\n\n- **params**: Object of param:\n     - **remote**: path of project (sample:`eyolas/gitlab-download`) (required)\n     - **dest**: The output directory.\n     - **ref**: Gitlab reference (branch, tag, or commit). Default : `master`\n     - **downloadOptions**: Options for [download api]()\n\nReturns both a `Promise\u003cBuffer\u003e` and a [Duplex stream](https://nodejs.org/api/stream.html#stream_class_stream_duplex) with [additional events](https://github.com/sindresorhus/got#streams-1).\n\nExample:\n\n```javascript\nvar GitlabDownload = require('gitlab-download');\nvar gitlab = new GitlabDownload('https://mysgitlab.com', 'aze12233zae');\ngitlab.download({remote: 'eyolas/gitlab-download'});\n```\n\n\nLicense\n-------\n\n(WTFPL License)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyolas%2Fgitlab-download","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feyolas%2Fgitlab-download","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyolas%2Fgitlab-download/lists"}