title: Convert string of ex-object to object Javascript
body: <p>I have a string that I got through fs.readFile of a js file.</p>
  <pre><code>const content = &quot;{ host: env(&quot;HOST&quot;, &quot;0.0.0.0&quot;), port: env.int(&quot;PORT&quot;, 1337), app: { keys: env.array(&quot;APP_KEYS&quot;), },}&quot;
  </code></pre>
  <p>I need to convert it back to an object so I can check some things and re-write the file if needed.</p>
  <p>JSON.parse won't work.</p>