UNPKG

lx-scan

Version:

License eXtension to find 5-tuples of all installed packages: name, version, project home page, license (e. g. Apache v2, BSD) and required notice. It includes a GUI to edit information for each package and to enter information if necessary.

14 lines (12 loc) 399 B
var lxu = require("lxutils"); var fs = require("fs"); module.exports.get = function(req,res) { var verbose = (req.query.verbose === "true"); var jfile = req.query.jfile; var path = req.app.locals.jfiles[jfile]; if(!fs.existsSync(path)) { res.redirect("localhost:8888/?jfile="+jfile); return; } lxu.jRender(path,'report',{title: "LX Report",verbose:verbose,jfile:jfile},res); };