{"id":15685600,"url":"https://github.com/austinkelleher/nrd","last_synced_at":"2025-07-04T12:07:16.229Z","repository":{"id":65465112,"uuid":"82067970","full_name":"austinkelleher/nrd","owner":"austinkelleher","description":"Download directly from the npm registry without using the npm CLI 🤓","archived":false,"fork":false,"pushed_at":"2018-03-09T00:38:10.000Z","size":40,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-01T12:47:17.555Z","etag":null,"topics":["download","nerd","npm","nrd","registry","tar"],"latest_commit_sha":null,"homepage":"","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/austinkelleher.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}},"created_at":"2017-02-15T14:15:06.000Z","updated_at":"2020-11-07T05:43:40.000Z","dependencies_parsed_at":"2023-01-24T17:45:24.196Z","dependency_job_id":null,"html_url":"https://github.com/austinkelleher/nrd","commit_stats":null,"previous_names":["austinkelleher/npm-registry-download"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/austinkelleher/nrd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinkelleher%2Fnrd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinkelleher%2Fnrd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinkelleher%2Fnrd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinkelleher%2Fnrd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austinkelleher","download_url":"https://codeload.github.com/austinkelleher/nrd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinkelleher%2Fnrd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259884437,"owners_count":22926443,"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":["download","nerd","npm","nrd","registry","tar"],"created_at":"2024-10-03T17:27:27.737Z","updated_at":"2025-07-04T12:07:16.213Z","avatar_url":"https://github.com/austinkelleher.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nrd\n\nDownload an [npm](https://www.npmjs.com/) registry package tar file directly.\n`nrd` is short for **npm registry download**. It is also for `nerds`. `nrd` is\nuseful for easily inspecting source code of modules **and** creating project\nscaffolds. Instead of creating a repo that has a template folder inside of it\nand copying files over, a project can be versioned, and directly downloaded from\nnpm into a project without dependency resolution issues. For example:\n\n```bash\n# Downloads my scaffold project from npm and renames it to `myapp`\nmy-cli-using-nrd create myapp\n\n# Other examples\nmarko create myapp\ncreate-react-app myapp\nember new myapp\nng new myapp\n```\n\n### Install\n\n```bash\nnpm install nrd --save\n```\n\n`nrd` also comes packaged with a command line utility enabling you to download\na package from npm to any specific directory from the command line. **You\nobviously need it.** You can install `nrd` globally with:\n\n```\nnpm install nrd -g\n```\n\n### Usage:\n\nDownload a package to the current directory and decompress the tar:\n\n```js\nconst nrd = require('nrd');\n\nnrd.download('express');\n```\n\nDownload a package to a specific directory and decompress the tar:\n\n```js\nconst nrd = require('nrd');\n\nnrd.download('express', {\n  dir: '/Users/me/Desktop'\n});\n```\n\nDownload a specific version of a package:\n\n```js\nconst nrd = require('nrd');\n\nnrd.download('express', {\n  dir: '/Users/me/Desktop',\n  version: \"4.13.1\"\n});\n```\n\n### Options\n\nAvailable options:\n\n```js\nconst nrd = require('nrd');\n\nnrd.download('express', {\n  ...\n});\n```\n\n- tag {String} - A version tag to download (defaults to `latest`)\n- version {String} - The version to download from npm\n- dir {String} - Directory to download the file to (default to current directory)\n- untar {Boolean} - Whether the registry file should be untarred or not (defaults to `true`)\n- registry {String} - Change the remote npm registry to use (defaults to https://registry.npm.org).\n\n### CLI\n\n`nrd` comes packaged with a **fantastic** command line utility. Trust me, I\ncreated it.\n\nDownload a package to the current directory and decompress the tar:\n\n```bash\nnrd express\n```\n\nDownload a package to a specific directory and decompress the tar:\n\n```bash\nnrd express --dir /Users/me/Desktop\n```\n\n### CLI Help / Options\n\nRunning `nrd --help` will give you all of the information you need!\n\n```bash\n[master] $ nrd --help\nUsage: nrd [options]\n\nExamples:\n\n  Download an npm module to a specific directory:\n     nrd express --dir /Users/me/Desktop\n\n  Download a module from npm using a specific version:\n     nrd express --version 4.14.1\n\n  Download a module from npm using a specific tag:\n     nrd express --tag beta\n\nOptions:\n\n  --help Show this help message [string]\n\n  --dir -d Directory to download the module into (defaults to current directory) [string]\n\n  --tag -t A version tag to download (defaults to latest) [string]\n\n  --version -v The version to download from npm [string]\n\n  --untar -u Whether the registry file should be untarred or not (defaults to true) [boolean]\n\n  --registry -r Change the remote npm registry to use (defaults to https://registry.npm.org) [string]\n\n  --module -m * npm module name [string]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustinkelleher%2Fnrd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustinkelleher%2Fnrd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustinkelleher%2Fnrd/lists"}