美文网首页
使用nodejs将excel数据转为json

使用nodejs将excel数据转为json

作者: 初语_ | 来源:发表于2017-01-21 20:55 被阅读0次

npm install xls-to-json


node_xj = require("xls-to-json");
node_xj({
    input: "sample.xls", // input xls
    output: "output.json" // output json
    sheet: "sheetname" // specific sheetname
    }, function(err, result) {
            if(err) {
                console.error(err);
            } else {
                console.log(result);
            }
    }
);

相关文章

网友评论

      本文标题:使用nodejs将excel数据转为json

      本文链接:https://www.haomeiwen.com/subject/oobamttx.html