3 var github = require('../_common/github.js');
4 var owner = 'therootcompany';
5 var repo = 'xz-static';
7 module.exports = function (request) {
8 return github(request, owner, repo).then(function (all) {
9 all.releases.forEach(function (rel) {
10 if (/windows/.test(rel.download)) {
11 if (!/(86|64)/.test(rel.arch)) {
20 if (module === require.main) {
21 module.exports(require('@root/request')).then(function (all) {
22 all = require('../_webi/normalize.js')(all);
23 // just select the first 5 for demonstration
24 all.releases = all.releases.slice(0, 5);
25 console.info(JSON.stringify(all, null, 2));