3 var github = require('../_common/github.js');
4 var owner = 'caddyserver';
7 module.exports = function (request) {
8 return github(request, owner, repo).then(function (all) {
9 // remove checksums and .deb
10 all.releases = all.releases.filter(function (rel) {
11 return !/(\.txt)|(\.deb)$/i.test(rel.name);
17 if (module === require.main) {
18 module.exports(require('@root/request')).then(function (all) {
19 all = require('../_webi/normalize.js')(all);
20 console.info(JSON.stringify(all));