How to use the node-xlsx.XLSX function in node-xlsx

To help you get started, we’ve selected a few node-xlsx examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Moblox / mongo-xlsx / lib / xlsx-rw.js View on Github external
exports.buildDate = function(date) {
  var datenum = function(v, date1904) {
    if(date1904) {
      v += 1462;
    }
    var epoch = Date.parse(v);
    return (epoch - new Date(Date.UTC(1899, 11, 30))) / (24 * 60 * 60 * 1000);
  };

  return {
    t: 'n',
    z: xlsx.XLSX.SSF._table[15],
    v: datenum(date)
    //original: date
  };
};

node-xlsx

NodeJS Excel files parser & builder

Apache-2.0
Latest version published 22 days ago

Package Health Score

85 / 100
Full package analysis