object-to-excel
v1.0.4
Published
根据object生成excel
Downloads
12
Readme
objectToExcel
将传入的目录下所有js文件所导出的object生成excel文件
安装
npm install object-to-excel
a.js
export default{
a:123,b:'test'
}
b.js
export default{
a:123,b:'test2'
}
index.js
const createExcel =require('object-to-excel')
/**
* @param xlPath
* @param options
*/
createExcel(__dirname,{ignoreFiles:['index.js']})
Options
key | value ------------- | ------------- ignoreFiles | 所忽略的js名称