index.js
function splitMultipleValues(envObject) {
  try {
    const data = Object.keys(envObject)
    return data.reduce((p, v) => {
      p[v] = envObject[v]
      if (envObject[v].indexOf(',') !== -1) {
        p[v] = envObject[v].split(',')
      }
      return p
    }, {})
  } catch (err) {
    throw err
  }
}
function splitMultipleValues(envObject) {
  try {
    const data = Object.keys(envObject)
    return data.reduce((p, v) => {
      p[v] = envObject[v]
      if (envObject[v].indexOf(',') !== -1) {
        p[v] = envObject[v].split(',')
      }
      return p
    }, {})
  } catch (err) {
    throw err
  }
}
function splitMultipleValues ( envObject ) { try { const data = Object . keys ( envObject ) return data . reduce ( ( p , v ) => { p [ v ] = envObject [ v ] if ( envObject [ v ] . indexOf ( ',' ) !== - 1 ) { p [ v ] = envObject [ v ] . split ( ',' ) } return p } , { } ) } catch ( err ) { throw err } }
it only supports spilitting using comma
it only supports spilitting using comma