SILENT KILLERPanel

Current Path: > > usr > lib > node_modules > npm > > node_modules > > editor


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.38
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //usr/lib/node_modules/npm//node_modules//editor

NameTypeSizeLast ModifiedActions
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.

Reading File: //usr/lib/node_modules/npm//node_modules//editor/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)
    });
};

SILENT KILLER Tool