title: Define cell format on AlaSQL/JS-XLSX Excel Export
body: <p>Is it possible to define cell format on AlaSQL export to Excel?</p>
  <p>I'm maintaining a system that exports grid data to Excel using AlaSQL. The problem is that Excel data is not being converted to NUMBER. DATE values do OK, but Numeric types are always displayed as General. By forcing a convertion to Number type in JS, the message &quot;Number stored as Text&quot; is shown on xls file.</p>
  <p>I think it would be easier solving this problem using js-xlsx directly, but it would generate lots of changes in the project and this is not an option.</p>
  <p>I need to use something like it's shown here <a href="http://jsfiddle.net/95j0txwx/7/" rel="nofollow noreferrer">jsFiddle</a>, passing json options to alasql function.</p>
  <p>Below, a simple piece of code to serve as an example:</p>
  <pre><code>&lt;head&gt;
  
      &lt;script src=&quot;http://cdn.jsdelivr.net/alasql/0.2/alasql.min.js&quot;&gt;&lt;/script&gt; 
      &lt;script src=&quot;http://alasql.org/console/xlsx.core.min.js&quot;&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;script&gt;
  
    function download() {
  
      var opts = {
          sheetid: 'Default',
          headers: true
      };
  
      alasql.fn.to_number = function(val){
          return new Number(val);
      };
    
      var query = 'SELECT to_number(&quot;1&quot;) as NumericColumn INTO XLSX(&quot;Test.xlsx&quot;, ?)';
    
      alasql(query, [opts, function data(){}]);
    
    };
      
  &lt;/script&gt;
  </code></pre>
  <p>I appreciate your attention.</p>