PATH:
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
@npmcli
/
run-script
/
lib
const util = require('util') const fs = require('fs') const { stat } = fs.promises || { stat: util.promisify(fs.stat) } const { resolve } = require('path') module.exports = async path => { try { const st = await stat(resolve(path, 'server.js')) return st.isFile() } catch (er) { return false } }
[-] run-script.js
[edit]
[+]
..
[-] make-spawn-args.js
[edit]
[-] package-envs.js
[edit]
[+]
node-gyp-bin
[-] validate-options.js
[edit]
[-] is-windows.js
[edit]
[-] run-script-pkg.js
[edit]
[-] set-path.js
[edit]
[-] is-server-package.js
[edit]
[-] escape.js
[edit]
[-] signal-manager.js
[edit]