code: function isExe (mod, uid, gid) {
    return (mod & 0001)
        || (mod & 0010) && gid === process.getgid()
        || (mod & 0100) && uid === process.getuid()
  }
docs: console.log(process.execPath) console.log(process.argv)