Comparing version 0.0.6 to 0.1.0
12
index.js
@@ -14,16 +14,8 @@ var spawn = require('child_process').spawn; | ||
var bin = args.shift(); | ||
setRaw(true); | ||
var ps = spawn(bin, args.concat([ file ]), { customFds : [ 0, 1, 2 ] }); | ||
var ps = spawn(bin, args.concat([ file ]), { stdio: 'inherit' }); | ||
ps.on('exit', function (code, sig) { | ||
setRaw(false); | ||
process.stdin.pause(); | ||
if (typeof cb === 'function') cb(code, sig) | ||
}); | ||
}; | ||
var tty = require('tty'); | ||
function setRaw (mode) { | ||
process.stdin.setRawMode ? process.stdin.setRawMode(mode) : tty.setRawMode(mode); | ||
} |
{ | ||
"name" : "editor", | ||
"version" : "0.0.6", | ||
"version" : "0.1.0", | ||
"description" : "launch $EDITOR in your program", | ||
@@ -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
3362
25