code: function output(data, format) {
      switch(format) {
          case 'json':
              return json(data, 2);
          case 'min':
              return json(data);
          case 'unix':
              return unix(data);
          default:
              throw `Invalid format: ${format}`;
      }
  }
docs: TODO support 'unix' and 'yaml|yml' too TODO add an option for pretty formatting the JSON objects TODO the format should by default be unix so it can be easier to use it in bash scripts