File Explorer

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

nerf-dart.js455 B · 19 lines
const { URL } = require('node:url') /** * Maps a URL to an identifier. * * Name courtesy schiffertronix media LLC, a New Jersey corporation * * @param {String} uri The URL to be nerfed. * * @returns {String} A nerfed URL. */module.exports = (url) => {  const parsed = new URL(url)  const from = `${parsed.protocol}//${parsed.host}${parsed.pathname}`  const rel = new URL('.', from)  const res = `//${rel.host}${rel.pathname}`  return res}