code: function child_nodes(node) {
    var properties = NODE_TYPES[node["type"]];
  
    if (properties === undefined) {
      console.error("FATAL".red + ": Unknown node type: " + node["type"]);
      console.trace();
      process.exit(1);
    }
  
     var x = properties.map(function(p) {
       return node[p];
     });
  
     return _.flatten(_.compact(x));
  }
docs: Returns array of child nodes of given node