title: NodeJS/ReactJS: Create downloadable file with string for mobile browser
body: <p>I want to create a vCard in the frontend and to make it downloadable (by clicking a button) in a ReactJs Project. I use a NodeJS module called <code>vcards-js</code> that creates a string with the content of the desired vCard (v3.0). The thing I am struggling with is to make it downloadable (as .vcf file). I have tried to achieve this with the modules <code>react-file-download</code> and <code>file-saver</code> but none of them worked properly. Last one worked fine on desktop, but did not manage to provide a download from mobile browsers. Chrome mobile opened a new tab and loaded forever, Safari mobile just opened the string in a new tap, but did not download it as a .vcf file.</p>
  
  <p>Any clues or experiences? Do I need to create the vCard Server-side and provide a download link? Seems too circuitous to me.</p>
  
  <p>If it helps, this is my <code>file-saver</code> approach:</p>
  
  <pre><code>var FileSaver = require('file-saver');
      var blob = new Blob([card.getFormattedString()], {type: "text/x-vCard;charset=iso-8859-1"});
      FileSaver.saveAs(blob, 'card.vcf');
  </code></pre>