UNPKG

verdaccio

Version:

A lightweight private npm proxy registry

19 lines (18 loc) 488 B
import _ from "lodash"; //#region src/api/debug/index.ts var debug_default = (app, selfPath) => { app.get("/-/_debug", function(req, res, next) { const doGarbabeCollector = _.isNil(global.gc) === false; if (doGarbabeCollector) global.gc(); next({ pid: process.pid, main: process.mainModule.filename, conf: selfPath, mem: process.memoryUsage(), gc: doGarbabeCollector }); }); }; //#endregion export { debug_default as default }; //# sourceMappingURL=index.mjs.map