Comparing version 3.0.1 to 3.0.2
14
index.js
'use strict' | ||
var path = require('path') | ||
, fs = require('fs') | ||
const path = require('path') | ||
const fs = require('fs') | ||
@@ -15,8 +15,10 @@ module.exports = function(file, stream) { | ||
return function(code) { | ||
var rs = fs.createReadStream(file) | ||
const rs = fs.createReadStream(file) | ||
rs.pipe(stream) | ||
rs.on('close', function() { | ||
if (code) process.exitCode = code | ||
}) | ||
if (code) { | ||
rs.on('close', function() { | ||
process.exitCode = code | ||
}) | ||
} | ||
} | ||
} |
{ | ||
"name": "help", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "substack way of --help", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
5344
92