File Explorer

/var/lang/lib/node_modules/npm/node_modules/@npmcli/git/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-clean.js222 B · 7 lines
const spawn = require('./spawn.js') module.exports = (opts = {}) =>  spawn(['status', '--porcelain=v1', '-uno'], opts)    .then(res => !res.stdout.trim().split(/\r?\n+/)      .map(l => l.trim()).filter(l => l).length)