title: Nodejs FsSystem
body: <p>how do i export and use values ​​returned from the date of this function ?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>exports.dadosXml = function(){
    
    fs.readFile("./auth/socket_config.json" , "utf8", function(err, data){
      if(data){
  
        jsonData = JSON.parse(data);
        return  console.log(jsonData);
        
      }else if(err){
        
        return console.log("Erro");
        
      }
      
    });
  
  }</code></pre>
  </div>
  </div>
  </p>