File contents not being read in nodejs program <p>I have a file temp.js that contains text as below:</p> <pre><code>module.config = { key1 : 'value1', key2 : 'value2', key3 : ['abc','def'] } </code></pre> <p>I am reading the file as below:</p> <pre><code>fs.readFile('/temp.js', function(err,fileContents) { console.log(fileContents); }); </code></pre> <p>on the output I am getting values as below:</p> <pre><code>&lt;Buffer 6d 6f ..... ...&gt; </code></pre> <p>What am i missing here ?</p>