File Explorer

/var/lang/lib/node_modules/npm/node_modules/@npmcli/run-script/lib

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

is-server-package.js245 B · 12 lines
const { stat } = require('node:fs/promises')const { resolve } = require('node:path') module.exports = async path => {  try {    const st = await stat(resolve(path, 'server.js'))    return st.isFile()  } catch (er) {    return false  }}