json2excel
v1.2.0
Published
a plugin base on node-xlsx to pipe json to excel .
Downloads
1,532
Readme
json2excel
Quick start
Install
npm install json2excel
Example
var jexcel=require('json2excel');
var data = {
sheets: [{
header: {
'author': 'authorName',
'title': 'title'
},
items: [
{
author:'john',
title:'how to use this'
},
{
author:'Bob',
title:'so Easy'
}
],
sheetName: 'sheet1',
}],
filepath: 'j2x.xlsx'
}
jexcel.j2e(data,function(err){
console.log('finish')
});