initial commit

This commit is contained in:
2017-05-20 16:42:43 -04:00
commit e6530a1fa6
2106 changed files with 206258 additions and 0 deletions

40
node_modules/latest-version/cli.js generated vendored Normal file
View File

@@ -0,0 +1,40 @@
#!/usr/bin/env node
'use strict';
var pkg = require('./package.json');
var latestVersion = require('./');
var argv = process.argv.slice(2);
var input = argv[0];
function help() {
console.log([
'',
' ' + pkg.description,
'',
' Usage',
' latest-version <package-name>',
'',
' Example',
' latest-version pageres',
' 0.4.1'
].join('\n'));
}
if (!input || argv.indexOf('--help') !== -1) {
help();
return;
}
if (argv.indexOf('--version') !== -1) {
console.log(pkg.version);
return;
}
latestVersion(input, function (err, version) {
if (err) {
console.error(err);
process.exit(1);
return;
}
console.log(version);
});

13
node_modules/latest-version/index.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
'use strict';
var packageJson = require('package-json');
module.exports = function (name, cb) {
packageJson(name.toLowerCase(), 'latest', function (err, json) {
if (err) {
cb(err);
return;
}
cb(null, json.version);
});
};

21
node_modules/latest-version/license generated vendored Normal file
View 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.

103
node_modules/latest-version/package.json generated vendored Normal file
View File

@@ -0,0 +1,103 @@
{
"_args": [
[
{
"raw": "latest-version@^1.0.0",
"scope": null,
"escapedName": "latest-version",
"name": "latest-version",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"C:\\Users\\chvra\\Documents\\angular-play\\nodeRest\\node_modules\\update-notifier"
]
],
"_from": "latest-version@>=1.0.0 <2.0.0",
"_id": "latest-version@1.0.1",
"_inCache": true,
"_location": "/latest-version",
"_nodeVersion": "0.12.4",
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "2.10.1",
"_phantomChildren": {},
"_requested": {
"raw": "latest-version@^1.0.0",
"scope": null,
"escapedName": "latest-version",
"name": "latest-version",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/update-notifier"
],
"_resolved": "https://registry.npmjs.org/latest-version/-/latest-version-1.0.1.tgz",
"_shasum": "72cfc46e3e8d1be651e1ebb54ea9f6ea96f374bb",
"_shrinkwrap": null,
"_spec": "latest-version@^1.0.0",
"_where": "C:\\Users\\chvra\\Documents\\angular-play\\nodeRest\\node_modules\\update-notifier",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bin": {
"latest-version": "cli.js"
},
"bugs": {
"url": "https://github.com/sindresorhus/latest-version/issues"
},
"dependencies": {
"package-json": "^1.0.0"
},
"description": "Get the latest version of a npm package",
"devDependencies": {
"mocha": "*"
},
"directories": {},
"dist": {
"shasum": "72cfc46e3e8d1be651e1ebb54ea9f6ea96f374bb",
"tarball": "https://registry.npmjs.org/latest-version/-/latest-version-1.0.1.tgz"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js",
"cli.js"
],
"gitHead": "77d6fa6e20551c716f1e543358b93fc9b5c0bfb9",
"homepage": "https://github.com/sindresorhus/latest-version",
"keywords": [
"latest",
"version",
"npm",
"package",
"package.json",
"current",
"module"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "latest-version",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/latest-version.git"
},
"scripts": {
"test": "mocha"
},
"version": "1.0.1"
}

48
node_modules/latest-version/readme.md generated vendored Normal file
View File

@@ -0,0 +1,48 @@
# 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 a 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
```sh
$ npm install --save latest-version
```
## Usage
```js
var latestVersion = require('latest-version');
latestVersion('pageres', function (err, version) {
console.log(version);
//=> 0.2.3
});
```
## CLI
```sh
$ npm install --global latest-version
```
```sh
$ latest-version --help
Usage
latest-version <package-name>
Example
latest-version pageres
0.4.1ersion pageres
0.2.3
```
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)