Current Path: > > lib > node_modules > npm > node_modules > editor
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
example | Directory | - | - | |
LICENSE | File | 1137 bytes | March 10 2021 14:36:38. | |
README.markdown | File | 653 bytes | March 10 2021 14:36:38. | |
index.js | File | 595 bytes | March 10 2021 14:36:38. | |
package.json | File | 1410 bytes | March 10 2021 14:36:38. |
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) }); };
SILENT KILLER Tool