File Explorer

/var/lang/lib/node_modules/npm/node_modules/@npmcli/metavuln-calculator/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 /.

get-dep-spec.js522 B · 16 lines
module.exports = (mani, name) => {  // skip dev because that only matters at the root,  // where we aren't fetching a manifest from the registry  // with multiple versions anyway.  const {    dependencies: deps = {},    optionalDependencies: optDeps = {},    peerDependencies: peerDeps = {},  } = mani   return deps && typeof deps[name] === 'string' ? deps[name]    : optDeps && typeof optDeps[name] === 'string' ? optDeps[name]    : peerDeps && typeof peerDeps[name] === 'string' ? peerDeps[name]    : null}