title: Vue.js - Write JSON object to local file
body: <p>Some while ago I started learning Vue.js and a short while after, I started a bigger project, not keeping in mind, that Javascript has limited options to interact with the local file system.
  I set up the project via vue-cli, so I have to start the website via <code>npm start</code>.</p>
  
  <p>Said project consist of a visual editor for JSON Files. When I wanted to implement the save button, I recognized that it's a quite difficult task to make is write/save (and maybe read in the future) a JSON file to my local machine.</p>
  
  <p>I already tried using node's <code>fs</code> library, thinking it would work, because it is launched with node.
  I also tried several external libraries e.g. the <code>write-json-file</code> npm lib.</p>
  
  <p>I'm getting to a point where I'm out of ideas and would do pretty much anything thats necessary to make it work.</p>