title: Create file in Chrome Extensions
body: <p>I would like to know how is it possible to create custom file located in extension root directory using JavaScript or Chrome API.</p>
  
  <p>Extension root directory looks like:</p>
  
  <ul>
  <li>popup.html</li>
  <li>popup.js</li>
  <li>manifest.json</li>
  <li>icon.png</li>
  </ul>
  
  <p>And I would like to create JSON file called test in that root directory.</p>
  
  <p>So after that it should look like:</p>
  
  <ul>
  <li>popup.html</li>
  <li>popup.js</li>
  <li>manifest.json</li>
  <li>icon.png</li>
  <li><strong>test.json</strong></li>
  </ul>
  
  <p><strong>test.json</strong> should contain:</p>
  
  <pre><code>{
    "data": "123456789"
  }
  </code></pre>
  
  <p>It is not duplicate, because that post is for File Dialog and I need to save it at fixed location and in extension folder. And as I said I want to create it, not download it.</p>