title: How to print my sql output from console.log into html with rows and column
body: <p>Below is my sample code in HTML I have to print the data with proper table format</p>
  
  <pre><code>redshiftClient.query('SELECT top 10 * FROM table')
      .then(function (data) {
          console.log(data);
          var mail = {
              from: '******@outlook.com',
              to: '******@test.co.in',
              subject: "Send Email Using Node.js",
              text: "Node.js New world for me",
              html: ""
          }
  </code></pre>
  
  <p>Expected Output in email</p>
  
  <pre><code>id  name  age  gender
  1   abc    10   M
  2   def    20   M
  </code></pre>