add perms to email

This commit is contained in:
AJ ONeal 2018-10-08 01:19:24 +00:00
parent 6b619c8121
commit a4b39215ea
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
'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(', '));