File Explorer

/var/lang/lib/node_modules/npm/node_modules/semver/functions

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 /.

compare-build.js281 B · 10 lines
'use strict' const SemVer = require('../classes/semver')const compareBuild = (a, b, loose) => {  const versionA = new SemVer(a, loose)  const versionB = new SemVer(b, loose)  return versionA.compare(versionB) || versionA.compareBuild(versionB)}module.exports = compareBuild