diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/latest-version | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) |
remove node_modules
Diffstat (limited to 'node_modules/latest-version')
-rw-r--r-- | node_modules/latest-version/index.js | 4 | ||||
-rw-r--r-- | node_modules/latest-version/license | 21 | ||||
-rw-r--r-- | node_modules/latest-version/package.json | 39 | ||||
-rw-r--r-- | node_modules/latest-version/readme.md | 40 |
4 files changed, 0 insertions, 104 deletions
diff --git a/node_modules/latest-version/index.js b/node_modules/latest-version/index.js deleted file mode 100644 index bfb79d1c5..000000000 --- a/node_modules/latest-version/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; -const packageJson = require('package-json'); - -module.exports = name => packageJson(name.toLowerCase()).then(data => data.version); diff --git a/node_modules/latest-version/license b/node_modules/latest-version/license deleted file mode 100644 index 654d0bfe9..000000000 --- a/node_modules/latest-version/license +++ /dev/null @@ -1,21 +0,0 @@ -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. diff --git a/node_modules/latest-version/package.json b/node_modules/latest-version/package.json deleted file mode 100644 index f9abf68ca..000000000 --- a/node_modules/latest-version/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "latest-version", - "version": "3.1.0", - "description": "Get the latest version of an npm package", - "license": "MIT", - "repository": "sindresorhus/latest-version", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "latest", - "version", - "npm", - "pkg", - "package", - "package.json", - "current", - "module" - ], - "dependencies": { - "package-json": "^4.0.0" - }, - "devDependencies": { - "ava": "*", - "semver-regex": "^1.0.0", - "xo": "*" - } -} diff --git a/node_modules/latest-version/readme.md b/node_modules/latest-version/readme.md deleted file mode 100644 index 3fcffdd0d..000000000 --- a/node_modules/latest-version/readme.md +++ /dev/null @@ -1,40 +0,0 @@ -# latest-version [![Build Status](https://travis-ci.org/sindresorhus/latest-version.svg?branch=master)](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) |