File Explorer

/proc/self/root/proc/1/task/1/cwd/node24/lib/node_modules/npm/node_modules/node-gyp/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 /.

list.js580 B · 27 lines
'use strict' const fs = require('graceful-fs').promisesconst log = require('./log') async function list (gyp, args) {  const devDir = gyp.devDir  log.verbose('list', 'using node-gyp dir:', devDir)   let versions = []  try {    const dir = await fs.readdir(devDir)    if (Array.isArray(dir)) {      versions = dir.filter((v) => v !== 'current')    }  } catch (err) {    if (err && err.code !== 'ENOENT') {      throw err    }  }   return versions} module.exports = listmodule.exports.usage = 'Prints a listing of the currently installed node development files'