title: Escaping issue with firebase privateKey as a Heroku config variable
body: <p>I'm trying to create an Heroku node task that reads data from Firebase and console.log it.</p>
  
  <p>My node script (located inside the /bin directory) is:</p>
  
  <pre><code>require('dotenv').config({ silent: true });
  
  var firebase = require('firebase');
  firebase.initializeApp({
    serviceAccount: {
      projectId: process.env.fb_projectId,
      clientEmail: process.env.fb_clientEmail,
      privateKey: process.env.fb_privateKey
    },
    databaseURL: process.env.fb_databaseURL
  })
  
  console.log(process.env.fb_privateKey);
  
  firebase.database().ref('tasks').once('value', function(snapshot) {
    console.log(snapshot.val());
    process.exit();
  })
  </code></pre>
  
  <p>All env variables are correct, except <code>fb_privateKey</code>, since it contains <code>\n</code> characters.</p>
  
  <p>Both my local <code>.env</code> file and Heroku environment variables contains a key named <code>fb_privateKey</code> and a value as a string with <code>\n</code> characters - surrounded with <code>"</code>.</p>
  
  <pre><code>fb_privateKey="-----BEGIN PRIVATE KEY-----\nMY-PRIVATE-KEY\n-----END PRIVATE KEY-----\n"
  </code></pre>
  
  <p>When I run the script locally, it logs me the private key with new lines + the tasks that were returned from Firebase. However, when I run it on Heroku, (<code>heroku run myScript</code>) is logs me private key with <code>\n</code> characters (as a single line) and fails to read the data from Firebase (probably due to a bad private key). Any ideas?</p>