{"_id":"@3rd/nrm","name":"@3rd/nrm","dist-tags":{"latest":"2.0.1"},"versions":{"2.0.1":{"name":"@3rd/nrm","version":"2.0.1","description":"npm registry manager can help you switch different npm registries easily and quickly","keywords":["npm","registry"],"bin":{"nrm":"bin/cli.js"},"type":"module","engines":{"node":">=28"},"dependencies":{"@inquirer/checkbox":"^4.1.4","@inquirer/select":"^4.1.0","commander":"^13.1.0"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"license":"MIT","_id":"@3rd/nrm@2.0.1","gitHead":"c1e4768b0147f8bf2aea33caceae06f5c058216b","_nodeVersion":"23.10.0","_npmVersion":"11.2.0","dist":{"integrity":"sha512-Iz3jph6tbDD5r1TAC7T3joajrDEvO1n465Lcq85cT9UZqaMt+45UyxigSqja7oSZ4QnhL/X1n5Xy5OjYK0xpRQ==","shasum":"0c3439a496cd857c2e427699ddf4345aeb47b2a3","tarball":"https://registry.npmjs.org/@3rd/nrm/-/nrm-2.0.1.tgz","fileCount":3,"unpackedSize":15070,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQChURVNUosZ8VfO1L1tZLWP6IvRTJo3et9FPV+XmNmQJgIgMwRQiqjPBaeoHt56XZYc8jtv82pZYHc+nxxEq6lToQk="}]},"_npmUser":{"name":"scriptpower","email":"scriptpower@qq.com"},"directories":{},"maintainers":[{"name":"scriptpower","email":"scriptpower@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nrm_2.0.1_1742458188101_0.4862773492272392"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-20T08:09:47.980Z","2.0.1":"2025-03-20T08:09:48.232Z","modified":"2025-03-20T08:09:48.531Z"},"maintainers":[{"name":"scriptpower","email":"scriptpower@qq.com"}],"description":"npm registry manager can help you switch different npm registries easily and quickly","keywords":["npm","registry"],"license":"MIT","readme":"# @3rd/nrm\n\n> npm registry manager can help you switch different npm registries easily and quickly\n\n`@3rd/nrm` can help you switch different npm registries easily and quickly. It supports\n`npm`, `cnpm`, `taobao`, `yarn`, `tencent`, `npmMirror` and `huawei`.\n\n## Install\n\n```bash\n# npm\nnpm install -g @3rd/nrm\n\n# yarn \nyarn global add @3rd/nrm\n\n# pnpm\npnpm add -g @3rd/nrm\n```\n\n## Example\n\n```bash\n$ nrm ls\n\n  npm ---------- https://registry.npmjs.org/\n  yarn --------- https://registry.yarnpkg.com/\n  tencent ------ https://mirrors.tencent.com/npm/\n  cnpm --------- https://r.cnpmjs.org/\n  taobao ------- https://registry.npmmirror.com/\n  npmMirror ---- https://skimdb.npmjs.com/registry/\n  huawei ------- https://repo.huaweicloud.com/repository/npm/\n\n```\n\n```bash\n$ nrm use taobao\n\nSUCCESS The registry has been changed to 'taobao'.\n```\n\n## Usage\n\n```bash\nUsage: nrm [options] [command]\n\n  Commands:\n\n    ls                                    List all the registries\n    current                               Show current registry name\n      -u  --show-url                        Show the registry URL instead of the name\n    use [registry]                        Change registry to registry\n      -l  --local                           Switch local registry\n    add <registry> <url> [home]           Add one custom registry\n    login <registry> [value]              Set authorize information for a registry with a base64 encoded string or username and password\n      -a  --always-auth                     Set is always auth\n      -u  --username <username>             Your user name for this registry\n      -p  --password <password>             Your password for this registry\n      -e  --email <email>                   Your email for this registry\n    set-hosted-repo <registry> <value>    Set hosted npm repository for a custom registry to publish packages\n    set-scope <scopeName> <value>         Associating a scope with a registry\n    del-scope <scopeName>                 Remove a scope\n    set <registryName>                    Set custom registry attribute\n      -a  --attr <attr>                    Set custom registry attribute\n      -v  --value <value>                  Set custom registry value\n    del [registry]                        Delete one custom registry\n    rename <registryName> <newName>       Set custom registry name\n    home <registry> [browser]             Open the homepage of registry with optional browser\n    publish [<tarball>|<folder>]          Publish package to current registry if current registry is a custom registry. The field 'repository' of current custom registry is required running this command. If you're not using custom registry, this command will run npm publish directly\n      -t  --tag [tag]                        Add tag\n      -a  --access <public|restricted>       Set access\n      -o  --otp [otpcode]                    Set otpcode\n      -dr --dry-run                          Set is dry run\n    test [registry]                       Show the response time for one or all registries\n    help [command]                        Display help for command\n\n  Options:\n\n    -h  --help     output usage information\n    -V  --version  output the version number\n```\n\n## Registries\n\n* [npm](https://www.npmjs.org)\n* [yarn](https://yarnpkg.com)\n* [tencent](https://mirrors.tencent.com)\n* [cnpm](http://cnpmjs.org)\n* [npmMirror](https://skimdb.npmjs.com/)\n* [taobao](https://npmmirror.com)\n* [huawei](https://www.huaweicloud.com/special/npm-jingxiang.html)\n\n## How to configure yarn to use private registry ?\n\njust add .yarnrc in your project’s directory and write there:\n`registry \"http://your.registry\"`\n\nOr you can configure it in your HOME directory's .yarnrc\n\n## Notice\n\nWhen you are using preset registries the `publish` command will proxy to the npm official registry.\n\nWhen you are using a custom registry you will need to run the `set-hosted-repo` to set a url to publish packages to your hosted registry.\n\n## LICENSE\n\n[MIT](LICENSE)\n","readmeFilename":"README.md","_rev":"1-51ee6b7de53e346473af3e5470914edc"}