Comparing version
{ | ||
"name": "excel-help", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Helper + Middleware for exporting excel files based on sheetjs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -31,23 +31,23 @@ # Excel Help | ||
``` | ||
res.xlsx("export.xlsx",[ | ||
{ | ||
"type": "json", | ||
"data": [{ | ||
"foo":"bar", | ||
"bar":"foo", | ||
"abc":"def" | ||
}, | ||
{ | ||
"foo":"xyz", | ||
"bar":"lak", | ||
"abc":"mkx" | ||
}] | ||
}, | ||
{ | ||
"type": "columns", | ||
"data": [ | ||
["yqmxc", "kqyui", "zhasi", "kljhda"], | ||
["yqmxl", "kqyuiads", "zhasida", null, new Date()] | ||
] | ||
} | ||
res.xlsx("export.xlsx", [ | ||
{ | ||
"type": "json", | ||
"data": [{ | ||
"foo":"bar", | ||
"bar":"foo", | ||
"abc":"def" | ||
}, | ||
{ | ||
"foo":"xyz", | ||
"bar":"lak", | ||
"abc":"mkx" | ||
}] | ||
}, | ||
{ | ||
"type": "columns", | ||
"data": [ | ||
["yqmxc", "kqyui", "zhasi", "kljhda"], | ||
["yqmxl", "kqyuiads", "zhasida", null, new Date()] | ||
] | ||
} | ||
], config?config:{}) | ||
@@ -57,3 +57,3 @@ | ||
![[output.png]] | ||
 | ||
@@ -96,22 +96,22 @@ It accepts an array of objects of folklowing format: | ||
[ | ||
{ | ||
"type": "json", | ||
"data": [{ | ||
"foo":"bar", | ||
"bar":"foo", | ||
"abc":"def" | ||
}, | ||
{ | ||
"foo":"xyz", | ||
"bar":"lak", | ||
"abc":"mkx" | ||
}] | ||
}, | ||
{ | ||
"type": "columns", | ||
"data": [ | ||
["yqmxc", "kqyui", "zhasi", "kljhda"], | ||
["yqmxl", "kqyuiads", "zhasida", null, new Date()] | ||
] | ||
} | ||
{ | ||
"type": "json", | ||
"data": [{ | ||
"foo":"bar", | ||
"bar":"foo", | ||
"abc":"def" | ||
}, | ||
{ | ||
"foo":"xyz", | ||
"bar":"lak", | ||
"abc":"mkx" | ||
}] | ||
}, | ||
{ | ||
"type": "columns", | ||
"data": [ | ||
["yqmxc", "kqyui", "zhasi", "kljhda"], | ||
["yqmxl", "kqyuiads", "zhasida", null, new Date()] | ||
] | ||
} | ||
], | ||
@@ -118,0 +118,0 @@ "sheet1", //Name of the sheet (Not Mandatory) |
10657
1.41%