code: function convert(obj) {
    var type = typeof obj;
    if (type === 'object' && Array.isArray(obj)) {
      return '[' + obj.map(convert) + ']';
    }
  
    if (obj && type === 'object') {
      var string = [];
      for (var i in obj) {
        var prop = i;
        if (prop.indexOf('-') !== -1) prop = "'" + prop + "'";
        string.push(prop + ':' + convert(obj[i]));
      }
      return '{' + string + '}';
    }
  
    if (type === 'function') {
      return obj.toString();
    }
  
    return JSON.stringify(obj);
  }
docs: horrible function to convert a JS object to a string (so we can write the config file)