custom-json2excel icon indicating copy to clipboard operation
custom-json2excel copied to clipboard

[support] is that support nodejs ?

Open JackTn opened this issue 2 years ago • 3 comments

JackTn avatar Jul 03 '22 21:07 JackTn

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();

JackTn avatar Jul 03 '22 21:07 JackTn

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 avatar Jul 04 '22 06:07 asasugar

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'

asasugar avatar Jul 04 '22 06:07 asasugar