title: Parse multipart/form-data from Buffer in Node.js
body: <p>I have a Buffer which I know is a <code>multipart/form-data</code> payload, and I also know the HTTP <code>Content-Type</code> header in advance, which includes the boundary.</p>
  
  <p>There are modules such as node-formidable which work only on http request streams, so what I'm interested in is how to parse a multipart payload synchronously?</p>