3 var path = require('path');
5 var github = require('../_common/github.js');
6 var owner = 'denoland';
9 module.exports = function (request) {
10 return github(request, owner, repo).then(function (all) {
11 // remove checksums and .deb
12 all.releases = all.releases
13 .filter(function (rel) {
14 return !/(\.txt)|(\.deb)$/i.test(rel.name);
18 if (!rel.name.match(rel.version)) {
19 ext = path.extname(rel.name);
21 rel.name.slice(0, rel.name.length - ext.length) +
32 if (module === require.main) {
33 module.exports(require('@root/request')).then(function (all) {
34 all = require('../_webi/normalize.js')(all);
35 console.info(JSON.stringify(all, null, 2));