telebit-relay.js/lib/extensions/perms-to-email.js

13 lines
257 B
JavaScript
Raw Permalink Normal View History

2018-10-08 01:19:24 +00:00
'use strict';
var perms = require('./permissions.json');
var emails = {};
perms.forEach(function (p) {
p.nodes.forEach(function (n) {
if ('email' === n.type) {
emails[n.name] = true;
}
});
});
console.log(Object.keys(emails).join(', '));