Detailansicht verbessert
This commit is contained in:
6
express-server/node_modules/registry-url/index.js
generated
vendored
Normal file
6
express-server/node_modules/registry-url/index.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
'use strict';
|
||||
module.exports = function (scope) {
|
||||
var rc = require('rc')('npm', {registry: 'https://registry.npmjs.org/'});
|
||||
var url = rc[scope + ':registry'] || rc.registry;
|
||||
return url.slice(-1) === '/' ? url : url + '/';
|
||||
};
|
21
express-server/node_modules/registry-url/license
generated
vendored
Normal file
21
express-server/node_modules/registry-url/license
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
72
express-server/node_modules/registry-url/package.json
generated
vendored
Normal file
72
express-server/node_modules/registry-url/package.json
generated
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
{
|
||||
"_from": "registry-url@^3.0.3",
|
||||
"_id": "registry-url@3.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=",
|
||||
"_location": "/registry-url",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "registry-url@^3.0.3",
|
||||
"name": "registry-url",
|
||||
"escapedName": "registry-url",
|
||||
"rawSpec": "^3.0.3",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^3.0.3"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/package-json"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz",
|
||||
"_shasum": "3d4ef870f73dde1d77f0cf9a381432444e174942",
|
||||
"_spec": "registry-url@^3.0.3",
|
||||
"_where": "D:\\5CHITM\\Diplomarbeit\\SmartShopper\\SmartShopper\\express-server\\node_modules\\package-json",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/registry-url/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"rc": "^1.0.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Get the set npm registry URL",
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"pify": "^2.3.0",
|
||||
"require-uncached": "^1.0.2",
|
||||
"xo": "*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/registry-url#readme",
|
||||
"keywords": [
|
||||
"npm",
|
||||
"conf",
|
||||
"config",
|
||||
"npmconf",
|
||||
"registry",
|
||||
"url",
|
||||
"uri",
|
||||
"scope"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "registry-url",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/registry-url.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava --serial"
|
||||
},
|
||||
"version": "3.1.0"
|
||||
}
|
50
express-server/node_modules/registry-url/readme.md
generated
vendored
Normal file
50
express-server/node_modules/registry-url/readme.md
generated
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
# registry-url [](https://travis-ci.org/sindresorhus/registry-url)
|
||||
|
||||
> Get the set npm registry URL
|
||||
|
||||
It's usually `https://registry.npmjs.org/`, but [configurable](https://www.npmjs.org/doc/misc/npm-config.html#registry).
|
||||
|
||||
Use this if you do anything with the npm registry as users will expect it to use their configured registry.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save registry-url
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```ini
|
||||
# .npmrc
|
||||
registry = 'https://custom-registry.com/'
|
||||
```
|
||||
|
||||
```js
|
||||
const registryUrl = require('registry-url');
|
||||
|
||||
console.log(registryUrl());
|
||||
//=> 'https://custom-registry.com/'
|
||||
```
|
||||
|
||||
It can also retrieve the registry URL associated with an [npm scope](https://docs.npmjs.com/misc/scope).
|
||||
|
||||
```ini
|
||||
# .npmrc
|
||||
@myco:registry = 'https://custom-registry.com/'
|
||||
```
|
||||
|
||||
```js
|
||||
const registryUrl = require('registry-url');
|
||||
|
||||
console.log(registryUrl('@myco'));
|
||||
//=> 'https://custom-registry.com/'
|
||||
```
|
||||
|
||||
If 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.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
Reference in New Issue
Block a user