title: Node.js - How to read/write a markdown file changing its front matter metadata?
body: <p>I have a few hundred markdown files and I would like to loop through them and add a new data to their front matter metadata.</p>
  <p>For example, this is what my files look like now:</p>
  <pre><code>---
  title: My title here
  ---
  
  
  Markdown content here
  </code></pre>
  <p>And I want to add an <strong>id</strong> property to them:</p>
  <pre><code>---
  title: My title here
  id: 1982n1x23981u1
  ---
  
  
  Markdown content
  </code></pre>
  <p>What would be the cleanest way to do that in Node? I've found a few packages to handle markdown, but all of them aims to convert it to JSON instead.</p>
  <p>Thanks in advance!</p>