first commit
This commit is contained in:
17
build/node_modules/bin-version/index.js
generated
vendored
Normal file
17
build/node_modules/bin-version/index.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
var childProcess = require('child_process');
|
||||
var findVersions = require('find-versions');
|
||||
|
||||
module.exports = function (bin, cb) {
|
||||
childProcess.exec(bin + ' --version', function (err, stdout, stderr) {
|
||||
if (err) {
|
||||
if (err.code === 'ENOENT') {
|
||||
err.message = 'Couldn\'t find the `' + bin + '` binary. Make sure it\'s installed and in your $PATH';
|
||||
}
|
||||
|
||||
return cb(err);
|
||||
}
|
||||
|
||||
cb(null, findVersions(stdout.trim() || stderr.trim(), {loose: true})[0]);
|
||||
});
|
||||
};
|
||||
21
build/node_modules/bin-version/license
generated
vendored
Normal file
21
build/node_modules/bin-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
build/node_modules/bin-version/package.json
generated
vendored
Normal file
71
build/node_modules/bin-version/package.json
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"bin-version@1.0.4",
|
||||
"/Users/asciidisco/Desktop/asciidisco.com/build"
|
||||
]
|
||||
],
|
||||
"_from": "bin-version@1.0.4",
|
||||
"_id": "bin-version@1.0.4",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-nrSY7m/Xb3q5p8FgQ2+JV5Q1144=",
|
||||
"_location": "/bin-version",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "bin-version@1.0.4",
|
||||
"name": "bin-version",
|
||||
"escapedName": "bin-version",
|
||||
"rawSpec": "1.0.4",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.0.4"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/bin-version-check"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/bin-version/-/bin-version-1.0.4.tgz",
|
||||
"_spec": "1.0.4",
|
||||
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "http://sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/bin-version/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"find-versions": "^1.0.0"
|
||||
},
|
||||
"description": "Get the version of a binary in semver format",
|
||||
"devDependencies": {
|
||||
"ava": "0.0.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/bin-version#readme",
|
||||
"keywords": [
|
||||
"bin",
|
||||
"binary",
|
||||
"executable",
|
||||
"version",
|
||||
"semver",
|
||||
"semantic",
|
||||
"cli"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "bin-version",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/bin-version.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test.js"
|
||||
},
|
||||
"version": "1.0.4"
|
||||
}
|
||||
37
build/node_modules/bin-version/readme.md
generated
vendored
Normal file
37
build/node_modules/bin-version/readme.md
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
# bin-version [](https://travis-ci.org/sindresorhus/bin-version)
|
||||
|
||||
> Get the version of a binary in [semver](https://github.com/isaacs/node-semver) format
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
$ npm install --save bin-version
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```sh
|
||||
$ curl --version
|
||||
curl 7.30.0 (x86_64-apple-darwin13.0)
|
||||
```
|
||||
|
||||
```js
|
||||
var binVersion = require('bin-version');
|
||||
|
||||
binVersion('curl', function (err, version) {
|
||||
console.log(version);
|
||||
//=> 7.30.0
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
## CLI
|
||||
|
||||
See the [find-versions](https://github.com/sindresorhus/find-versions#cli) CLI.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
||||
Reference in New Issue
Block a user