@chuidylan/xls2json

xls2json 个人专用库

Usage no npm install needed!

<script type="module">
  import chuidylanXls2json from 'https://cdn.skypack.dev/@chuidylan/xls2json';
</script>

README

XLS2JSON

Copy from https://www.npmjs.com/package/xls2json

个人专用版本

Install

npm install @chuidylan/xls2json --save

const xls2json = require('@chuidylan/xls2json')

Library Usage

var xls2json = require('xls2json');

xls2json.convertFile(infile,outpath,function(err,result, data){
    if (err){
        // there was an error
    }else{
        // it's all good
    }

    // 回调函数增加json数据输出
    // 移除数据写入文件功能
});