{"id":13671186,"url":"https://github.com/kesla/download-npm-package","last_synced_at":"2025-04-10T00:08:06.386Z","repository":{"id":47418087,"uuid":"62459333","full_name":"kesla/download-npm-package","owner":"kesla","description":"Download a module from the npm registry.","archived":false,"fork":false,"pushed_at":"2021-09-01T06:27:15.000Z","size":429,"stargazers_count":23,"open_issues_count":9,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-10T00:07:48.421Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kesla.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-07-02T16:15:12.000Z","updated_at":"2023-03-25T11:15:22.000Z","dependencies_parsed_at":"2022-08-24T21:01:21.528Z","dependency_job_id":null,"html_url":"https://github.com/kesla/download-npm-package","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kesla%2Fdownload-npm-package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kesla%2Fdownload-npm-package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kesla%2Fdownload-npm-package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kesla%2Fdownload-npm-package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kesla","download_url":"https://codeload.github.com/kesla/download-npm-package/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131317,"owners_count":21052819,"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-08-02T09:01:02.313Z","updated_at":"2025-04-10T00:08:06.360Z","avatar_url":"https://github.com/kesla.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# download-npm-package\n\nDownload a module from the npm registry.\n\n## Installation\n\n```shell\nnpm [-g] install download-npm-package\n```\n\n## Features\n\n* Library to download packages\n* CLI to download packages\n* Will use registry (and auth) defined in your `.npmrc` file\n* Supports scoped packages\n\n## Usage\n\n### node\n\n*downloadNpmPackage* takes an package arg \u0026 a path as arguments and returns a promise, a promise that resolves once the package has been downloaded to the folder set in path.\n\n```js\nimport downloadNpmPackage from 'download-npm-package';\n\ndownloadNpmPackage({\n  arg: 'modulname@version' // for example, npm@2 or @mic/version@latest etc\n  dir: '/tmp' // package will be downlodaded to ${dir}/packageName\n}).then()\n```\n\n### cli\n\nThere's also a cli available!\n\n```shell\ndownload-npm-package $packageArg [$path]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkesla%2Fdownload-npm-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkesla%2Fdownload-npm-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkesla%2Fdownload-npm-package/lists"}