xlsx-style
Advanced tools
Comparing version 0.8.6 to 0.8.7
@@ -74,7 +74,8 @@ var XLSX = require('./'); | ||
/* bookType can be 'xlsx' or 'xlsm' or 'xlsb' */ | ||
var wopts = { bookType:'xlsx', bookSST:false, type:'binary' }; | ||
var defaultCellStyle = { font: { name: "Verdana", sz: 11, color: "FF00FF88"}, fill: {fgColor: {rgb: "FFFFAA00"}}}; | ||
var wopts = { bookType:'xlsx', bookSST:false, type:'binary', defaultCellStyle: defaultCellStyle, showGridLines: false}; | ||
console.log(JSON.stringify(wb, null,4)) | ||
//console.log(JSON.stringify(wb, null,4)) | ||
var OUTFILE = '/tmp/wb.xlsx'; | ||
XLSX.writeFile(wb, OUTFILE, {defaultCellStyle: { font: { name: "Verdana", sz: 11, color: "FF00FF88"}, fill: {fgColor: {rgb: "FFFFAA00"}}}}); | ||
XLSX.writeFile(wb, OUTFILE, wopts); | ||
console.log("Results written to " + OUTFILE) |
{ | ||
"name": "xlsx-style", | ||
"version": "0.8.6", | ||
"version": "0.8.7", | ||
"author": "sheetjs", | ||
@@ -21,2 +21,3 @@ "description": "Excel (XLSB/XLSX/XLSM/XLS/XML) and ODS spreadsheet parser and writer (extended to enable read/write of cell formats with xlsx files)", | ||
"devDependencies": { | ||
"cheerio":"^0.19.0", | ||
"mocha":"", | ||
@@ -23,0 +24,0 @@ "xlsjs":"", |
@@ -491,2 +491,4 @@ # xlsx-style | ||
| bookType | 'xlsx' | Type of Workbook ("xlsx" or "xlsm" or "xlsb") | | ||
| showGridLines | true | Show gridlines on all pages | | ||
| tabSelected | '1' | Initial tab selected | | ||
@@ -493,0 +495,0 @@ - `bookSST` is slower and more memory intensive, but has better compatibility |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
49940
673
4911728
4
54