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.

17 lines (12 loc) 469 B
var lxu = require("lxutils"); module.exports.get = function(req,res) { var pathToJSON,pathindex,savepath; pathindex = req.query.jfile || 1; pathToJSON = req.app.locals.jfiles[pathindex]; savepath = req.query.path; if(pathToJSON === "") { res.render("index",{title:'LX Viewer',jfile:pathindex,caller:"/",terse:true}); } else { lxu.jRender(pathToJSON,"index",{title:'LX Viewer',jfile:pathindex,caller:"/",path:savepath,terse: true},res); } };