{"id":17766616,"url":"https://github.com/floatdrop/chnpm","last_synced_at":"2026-03-15T05:09:40.314Z","repository":{"id":14759668,"uuid":"17480994","full_name":"floatdrop/chnpm","owner":"floatdrop","description":"npm configuration switcher","archived":false,"fork":false,"pushed_at":"2016-07-18T09:13:12.000Z","size":298,"stargazers_count":44,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T01:31:40.975Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/floatdrop.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":"2014-03-06T14:48:30.000Z","updated_at":"2022-04-20T16:56:03.000Z","dependencies_parsed_at":"2022-09-03T14:20:25.529Z","dependency_job_id":null,"html_url":"https://github.com/floatdrop/chnpm","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fchnpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fchnpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fchnpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fchnpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floatdrop","download_url":"https://codeload.github.com/floatdrop/chnpm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243508115,"owners_count":20301949,"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-10-26T20:33:26.025Z","updated_at":"2026-03-15T05:09:35.281Z","avatar_url":"https://github.com/floatdrop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chnpm [![Build Status](https://travis-ci.org/floatdrop/chnpm.svg?branch=master)](https://travis-ci.org/floatdrop/chnpm)\n\n\u003e Manage your npm files with ease\n\n\n## Install\n\n```\n$ npm install --save chnpm\n```\n\n\n## Usage\n\n```js\nvar chnpm = require('chnpm');\n\nchnpm.current();\n//=\u003e 'http://registry.npmjs.org'\n```\n\n\n## CLI\n\n```\n$ npm install --global chnpm\n```\n```\n  Manage your npm files with ease\n\n  Usage\n    $ chnpm [options] [name]\n\n  Examples\n    $ chnpm\n    Currently on http://registry.npmjs.org\n\n    $ chnpm --save npmjs\n    Config saved to ~/.npmjs.npmrc\n\n    $ npm config set registry http://registry.local.org\n    $ chnpm --save local\n    Config saved to ~/.local.npmrc\n\n    $ chnpm local\n    Switched to http://registry.local.org\n\n  Options\n    --save NAME  Save current configuration to ~/.NAME.npmrc\n```\n\n\n## API\n\n### chnpm.current()\n\nReturns current registry url.\n\n### chnpm.save(name)\n\nSaves current config file as `~/.${name}.npmrc`.\n\n### chnpm.load(name)\n\nSaves `~/.${name}.npmrc` as current config file.\n\n\n## License\n\nMIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fchnpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloatdrop%2Fchnpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fchnpm/lists"}