asasugar / custom-json2excel

📃 传入json生成excel,可自定义表格头部名称和过滤列
43 stars 10 forks source link

[support] is that support nodejs ? #18

Closed JackTn closed 1 year ago

JackTn commented 2 years ago

i use this repo in my nodejs app, when i generate it. This app has no reaction~

const json2excel = new Json2excel({ data: data_formant, keyMap: [...data.columns, "a"], orderedKey: ["a"]});
json2excel.generate();
asasugar commented 2 years ago

i use this repo in my nodejs app, when i generate it. This app has no reaction~

const json2excel = new Json2excel({ data: data_formant, keyMap: [...data.columns, "a"], orderedKey: ["a"]});
json2excel.generate();

I have packaged it into cjs, it should support the node environment, but I have not tried it, you can share your mini repo

asasugar commented 2 years ago

i use this repo in my nodejs app, when i generate it. This app has no reaction~

const json2excel = new Json2excel({ data: data_formant, keyMap: [...data.columns, "a"], orderedKey: ["a"]});
json2excel.generate();

try import Json2excel from 'custom-json2excel/dist/index.cjs'