Detailansicht verbessert
This commit is contained in:
		
							
								
								
									
										4
									
								
								express-server/node_modules/latest-version/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								express-server/node_modules/latest-version/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
'use strict';
 | 
			
		||||
const packageJson = require('package-json');
 | 
			
		||||
 | 
			
		||||
module.exports = name => packageJson(name.toLowerCase()).then(data => data.version);
 | 
			
		||||
							
								
								
									
										21
									
								
								express-server/node_modules/latest-version/license
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								express-server/node_modules/latest-version/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.
 | 
			
		||||
							
								
								
									
										71
									
								
								express-server/node_modules/latest-version/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										71
									
								
								express-server/node_modules/latest-version/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,71 @@
 | 
			
		||||
{
 | 
			
		||||
  "_from": "latest-version@^3.0.0",
 | 
			
		||||
  "_id": "latest-version@3.1.0",
 | 
			
		||||
  "_inBundle": false,
 | 
			
		||||
  "_integrity": "sha1-ogU4P+oyKzO1rjsYq+4NwvNW7hU=",
 | 
			
		||||
  "_location": "/latest-version",
 | 
			
		||||
  "_phantomChildren": {},
 | 
			
		||||
  "_requested": {
 | 
			
		||||
    "type": "range",
 | 
			
		||||
    "registry": true,
 | 
			
		||||
    "raw": "latest-version@^3.0.0",
 | 
			
		||||
    "name": "latest-version",
 | 
			
		||||
    "escapedName": "latest-version",
 | 
			
		||||
    "rawSpec": "^3.0.0",
 | 
			
		||||
    "saveSpec": null,
 | 
			
		||||
    "fetchSpec": "^3.0.0"
 | 
			
		||||
  },
 | 
			
		||||
  "_requiredBy": [
 | 
			
		||||
    "/update-notifier"
 | 
			
		||||
  ],
 | 
			
		||||
  "_resolved": "https://registry.npmjs.org/latest-version/-/latest-version-3.1.0.tgz",
 | 
			
		||||
  "_shasum": "a205383fea322b33b5ae3b18abee0dc2f356ee15",
 | 
			
		||||
  "_spec": "latest-version@^3.0.0",
 | 
			
		||||
  "_where": "D:\\5CHITM\\Diplomarbeit\\SmartShopper\\SmartShopper\\express-server\\node_modules\\update-notifier",
 | 
			
		||||
  "author": {
 | 
			
		||||
    "name": "Sindre Sorhus",
 | 
			
		||||
    "email": "sindresorhus@gmail.com",
 | 
			
		||||
    "url": "sindresorhus.com"
 | 
			
		||||
  },
 | 
			
		||||
  "bugs": {
 | 
			
		||||
    "url": "https://github.com/sindresorhus/latest-version/issues"
 | 
			
		||||
  },
 | 
			
		||||
  "bundleDependencies": false,
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "package-json": "^4.0.0"
 | 
			
		||||
  },
 | 
			
		||||
  "deprecated": false,
 | 
			
		||||
  "description": "Get the latest version of an npm package",
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "ava": "*",
 | 
			
		||||
    "semver-regex": "^1.0.0",
 | 
			
		||||
    "xo": "*"
 | 
			
		||||
  },
 | 
			
		||||
  "engines": {
 | 
			
		||||
    "node": ">=4"
 | 
			
		||||
  },
 | 
			
		||||
  "files": [
 | 
			
		||||
    "index.js"
 | 
			
		||||
  ],
 | 
			
		||||
  "homepage": "https://github.com/sindresorhus/latest-version#readme",
 | 
			
		||||
  "keywords": [
 | 
			
		||||
    "latest",
 | 
			
		||||
    "version",
 | 
			
		||||
    "npm",
 | 
			
		||||
    "pkg",
 | 
			
		||||
    "package",
 | 
			
		||||
    "package.json",
 | 
			
		||||
    "current",
 | 
			
		||||
    "module"
 | 
			
		||||
  ],
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "name": "latest-version",
 | 
			
		||||
  "repository": {
 | 
			
		||||
    "type": "git",
 | 
			
		||||
    "url": "git+https://github.com/sindresorhus/latest-version.git"
 | 
			
		||||
  },
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "test": "xo && ava"
 | 
			
		||||
  },
 | 
			
		||||
  "version": "3.1.0"
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										40
									
								
								express-server/node_modules/latest-version/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								express-server/node_modules/latest-version/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,40 @@
 | 
			
		||||
# latest-version [](https://travis-ci.org/sindresorhus/latest-version)
 | 
			
		||||
 | 
			
		||||
> Get the latest version of an npm package
 | 
			
		||||
 | 
			
		||||
Fetches the version directly from the registry instead of depending on the massive [npm](https://github.com/npm/npm/blob/8b5e7b6ae5b4cd2d7d62eaf93b1428638b387072/package.json#L37-L85) module like the [latest](https://github.com/bahamas10/node-latest) module does.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Install
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
$ npm install --save latest-version
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Usage
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
const latestVersion = require('latest-version');
 | 
			
		||||
 | 
			
		||||
latestVersion('ava').then(version => {
 | 
			
		||||
	console.log(version);
 | 
			
		||||
	//=> '0.18.0'
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
latestVersion('@sindresorhus/df').then(version => {
 | 
			
		||||
	console.log(version);
 | 
			
		||||
	//=> '1.0.1'
 | 
			
		||||
});
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Related
 | 
			
		||||
 | 
			
		||||
- [latest-version-cli](https://github.com/sindresorhus/latest-version-cli) - CLI for this module
 | 
			
		||||
- [package-json](https://github.com/sindresorhus/package-json) - Get the package.json of a package from the npm registry
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## License
 | 
			
		||||
 | 
			
		||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
 | 
			
		||||
		Reference in New Issue
	
	Block a user