UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

109 lines (108 loc) 3.91 kB
{ "_args": [ [ { "raw": "registry-url@^3.0.3", "scope": null, "escapedName": "registry-url", "name": "registry-url", "rawSpec": "^3.0.3", "spec": ">=3.0.3 <4.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/package-json" ] ], "_from": "registry-url@>=3.0.3 <4.0.0", "_id": "registry-url@3.1.0", "_inCache": true, "_location": "/registry-url", "_nodeVersion": "4.3.0", "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/registry-url-3.1.0.tgz_1459781197285_0.25229517510160804" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "2.14.12", "_phantomChildren": {}, "_requested": { "raw": "registry-url@^3.0.3", "scope": null, "escapedName": "registry-url", "name": "registry-url", "rawSpec": "^3.0.3", "spec": ">=3.0.3 <4.0.0", "type": "range" }, "_requiredBy": [ "/package-json" ], "_resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz", "_shasum": "3d4ef870f73dde1d77f0cf9a381432444e174942", "_shrinkwrap": null, "_spec": "registry-url@^3.0.3", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/package-json", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/registry-url/issues" }, "dependencies": { "rc": "^1.0.1" }, "description": "Get the set npm registry URL", "devDependencies": { "ava": "*", "pify": "^2.3.0", "require-uncached": "^1.0.2", "xo": "*" }, "directories": {}, "dist": { "shasum": "3d4ef870f73dde1d77f0cf9a381432444e174942", "tarball": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "gitHead": "79d07a452fe0c990fa0b154d510c68fc483b4689", "homepage": "https://github.com/sindresorhus/registry-url#readme", "keywords": [ "npm", "conf", "config", "npmconf", "registry", "url", "uri", "scope" ], "license": "MIT", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "name": "registry-url", "optionalDependencies": {}, "readme": "# registry-url [![Build Status](https://travis-ci.org/sindresorhus/registry-url.svg?branch=master)](https://travis-ci.org/sindresorhus/registry-url)\n\n> Get the set npm registry URL\n\nIt's usually `https://registry.npmjs.org/`, but [configurable](https://www.npmjs.org/doc/misc/npm-config.html#registry).\n\nUse this if you do anything with the npm registry as users will expect it to use their configured registry.\n\n\n## Install\n\n```\n$ npm install --save registry-url\n```\n\n\n## Usage\n\n```ini\n# .npmrc\nregistry = 'https://custom-registry.com/'\n```\n\n```js\nconst registryUrl = require('registry-url');\n\nconsole.log(registryUrl());\n//=> 'https://custom-registry.com/'\n```\n\nIt can also retrieve the registry URL associated with an [npm scope](https://docs.npmjs.com/misc/scope).\n\n```ini\n# .npmrc\n@myco:registry = 'https://custom-registry.com/'\n```\n\n```js\nconst registryUrl = require('registry-url');\n\nconsole.log(registryUrl('@myco'));\n//=> 'https://custom-registry.com/'\n```\n\nIf the provided scope is not in the user's `.npmrc` file, then `registry-url` will check for the existence of `registry`, or if that's not set, fallback to the default npm registry.\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/registry-url.git" }, "scripts": { "test": "xo && ava --serial" }, "version": "3.1.0" }