Submit
Path:
~
/
/
opt
/
alt
/
alt-nodejs11
/
root
/
lib
/
node_modules
/
npm
/
node_modules.bundled
/
editor
/
File Content:
index.js
var spawn = require('child_process').spawn; module.exports = function (file, opts, cb) { if (typeof opts === 'function') { cb = opts; opts = {}; } if (!opts) opts = {}; var ed = /^win/.test(process.platform) ? 'notepad' : 'vim'; var editor = opts.editor || process.env.VISUAL || process.env.EDITOR || ed; var args = editor.split(/\s+/); var bin = args.shift(); var ps = spawn(bin, args.concat([ file ]), { stdio: 'inherit' }); ps.on('exit', function (code, sig) { if (typeof cb === 'function') cb(code, sig) }); };
Submit
FILE
FOLDER
Name
Size
Permission
Action
example
---
0755
LICENSE
1137 bytes
0644
README.markdown
653 bytes
0644
index.js
595 bytes
0644
package.json
1410 bytes
0644
N4ST4R_ID | Naxtarrr