/var/lang/lib/node_modules/npm/node_modules/libnpmdiff/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 /.
const { basename, extname } = require('node:path') // we should try to print patches as long as the// extension is not identified as binary filesconst shouldPrintPatch = async (path, opts = {}) => { if (opts.diffText) { return true } const { default: binaryExtensions } = await import('binary-extensions') const filename = basename(path) const extension = ( filename.startsWith('.') ? filename : extname(filename) ).slice(1) return !binaryExtensions.includes(extension)} module.exports = shouldPrintPatch