index.js
function (options) {
    if (options.username && options.password) {
      return (options.protocol + "://" + options.username + ":" + options.password + "@" + options.host + ":" + options.port + "/" + options.database)
    }
    return (options.protocol + "://" + options.host + ":" + options.port + "/" + options.database)
  }
function (options) {
    if (options.username && options.password) {
      return (options.protocol + "://" + options.username + ":" + options.password + "@" + options.host + ":" + options.port + "/" + options.database)
    }
    return (options.protocol + "://" + options.host + ":" + options.port + "/" + options.database)
  }
function ( options ) { if ( options . username && options . password ) { return ( options . protocol + "://" + options . username + ":" + options . password + "@" + options . host + ":" + options . port + "/" + options . database ) } return ( options . protocol + "://" + options . host + ":" + options . port + "/" + options . database ) }
This is a convinence function for creating the InfluxDB connection string
This is a convinence function for creating the InfluxDB connection string