diff --git a/lib/extensions/perms-to-email.js b/lib/extensions/perms-to-email.js new file mode 100644 index 0000000..80bc9ac --- /dev/null +++ b/lib/extensions/perms-to-email.js @@ -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(', '));