【问题标题】:ods parser in node.js not workingnode.js 中的 ods 解析器无法正常工作
【发布时间】:2017-04-30 15:53:47
【问题描述】:

我在 node.js 中寻找 ODS 解析器。目前我正在使用excel-parser 用于解析 xls 和 xlsx 但无法解析 ODS 文件。

我寻找其他 npm 模块,但没有人支持 ODS 文件。

我尝试了this one,但它给了我错误“不支持的文件类型”。

请帮忙。

【问题讨论】:

    标签: node.js excel parsing ods


    【解决方案1】:

    你可以尝试使用xlsx

      if(typeof require !== 'undefined') XLSX = require('xlsx');
      var workbook = XLSX.readFile('test.ods');
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-20
      • 2021-03-20
      • 1970-01-01
      • 2021-11-25
      • 2021-08-10
      相关资源
      最近更新 更多