{"id":18260026,"url":"https://github.com/roppa/npm-downloader","last_synced_at":"2025-04-08T23:44:36.793Z","repository":{"id":143901693,"uuid":"74045637","full_name":"roppa/npm-downloader","owner":"roppa","description":"Download a list of modules","archived":false,"fork":false,"pushed_at":"2016-11-25T15:15:10.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-15T06:35:47.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roppa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-11-17T16:27:40.000Z","updated_at":"2016-11-17T16:28:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"45d5496e-308c-4f17-bb01-79be29c90b58","html_url":"https://github.com/roppa/npm-downloader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Fnpm-downloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Fnpm-downloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Fnpm-downloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Fnpm-downloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roppa","download_url":"https://codeload.github.com/roppa/npm-downloader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247947825,"owners_count":21023058,"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-11-05T10:41:34.436Z","updated_at":"2025-04-08T23:44:36.771Z","avatar_url":"https://github.com/roppa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NPM module downloader\n\n[![Build Status](https://travis-ci.org/roppa/npm-downloader.svg?branch=master)](https://travis-ci.org/roppa/npm-downloader)\n\nDownload a list of npm modules to use offline. My use case was for use on a server that has no outside connection so need to import modules into artifactory. The list can either be the url to the tarball (.tgz), the name, or the name@version of the module.\n\nFor example, to get a list of modules used in your app run:\n\n```\nnpm ls --json \u003e packages.json\n```\n\nThen traverse your JSON object and create an array of modules.\n\n## Running\n\nThe function takes 2 parameters, the target download directory and the array of modules to download:\n\n```\nlet dn = require('.');\ndn('./downloads', ['wordify', 'elasticsearch-synonyms']);\n```\n\nA Promise is returned, which when fulfilled will return an object:\n\n```\n{\n  success: [],\n  errors: [],\n}\n```\n\n## Test\n\n```\nnpm run test\n```\n\n## References\n\n - [Npm documentation](https://docs.npmjs.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froppa%2Fnpm-downloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froppa%2Fnpm-downloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froppa%2Fnpm-downloader/lists"}