bin-wrapper
Advanced tools
Comparing version 0.3.3 to 0.3.4
12
index.js
@@ -148,13 +148,3 @@ 'use strict'; | ||
if (self.opts.version) { | ||
return binCheck(self.use(), ['--version'], function (err, works, msg) { | ||
if (msg.indexOf(self.opts.version) !== -1) { | ||
return cb(null, self.use()); | ||
} | ||
cb('wrong version'); | ||
}); | ||
} | ||
cb(null, self.use()); | ||
cb(); | ||
}); | ||
@@ -161,0 +151,0 @@ } |
{ | ||
"name": "bin-wrapper", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Binary wrapper that makes your programs seamlessly available as local dependencies", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -15,3 +15,3 @@ # bin-wrapper [![Build Status](https://travis-ci.org/kevva/bin-wrapper.svg?branch=master)](https://travis-ci.org/kevva/bin-wrapper) | ||
var BinWrapper = require('bin-wrapper'); | ||
var bin = new BinWrapper({ version: 1.80, global: true }); | ||
var bin = new BinWrapper({ global: true }); | ||
@@ -35,3 +35,3 @@ bin | ||
```js | ||
console.log(bin.use); // => path/to/vendor/jpegtran.exe | ||
console.log(bin.use()); // => path/to/vendor/jpegtran.exe | ||
``` | ||
@@ -43,4 +43,3 @@ | ||
Creates a new `BinWrapper` instance. Use the `version` option to define a specific | ||
version and the `global` option to enable or disable global checking. | ||
Creates a new `BinWrapper` instance. Use the `global` option to enable or disable global checking. | ||
@@ -67,9 +66,2 @@ ### .src(str) | ||
### version | ||
Type: `String` | ||
Default: `undefined` | ||
Define a specific version. | ||
### global | ||
@@ -76,0 +68,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5842
149
73