converter json para .env nó

function convertToEnv (object) {
    let envFile = ''
    for (const key of Object.keys(object)) {
        envFile += `${key}=${object[key]}\n`
    }
    return envFile
}
Samiksha Singla