title: Convert string to object in NodeJS
body: <p>I have a string in this format:</p>
  
  <pre><code>var x = "a=1; b=2; c=3; d=4"
  </code></pre>
  
  <p>and I would like to convert it to an object like this:</p>
  
  <pre><code>var y = {
      a: "1",
      b: "2",
      c: "3",
      d: "4"
      }
  </code></pre>
  
  <p>Any ideas how to achieve that?</p>