Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert json to .env node

function convertToEnv (object) {
    let envFile = ''
    for (const key of Object.keys(object)) {
        envFile += `${key}=${object[key]}
`
    }
    return envFile
}
 
PREVIOUS NEXT
Tagged: #convert #json #node
ADD COMMENT
Topic
Name
5+2 =