json2excel

1.2.0 • Public • Published

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')
});
 

Readme

Keywords

Package Sidebar

Install

npm i json2excel

Weekly Downloads

118

Version

1.2.0

License

MIT

Last publish

Collaborators

  • shadowdaw