title: Convert CJS to ES6
body: <p>How can I convert these lines of code to ES6?</p>
  <pre><code>const basename = path.basename(__filename);
  const config = require(__dirname + '/../config/config.json')[env];
  </code></pre>