diff --git a/Readme.md b/Readme.md index 089a6d8..3571cd9 100644 --- a/Readme.md +++ b/Readme.md @@ -1,5 +1,7 @@ -# excel-export # +# excel-export2 # +引用:[https://github.com/functionscope/Node-Excel-Export](https://github.com/functionscope/Node-Excel-Export) + A simple node.js module for exporting data set to Excel xlsx file. ## Using excel-export ## diff --git a/example/package.json b/example/package.json index af0bb4d..58b44be 100644 --- a/example/package.json +++ b/example/package.json @@ -1,12 +1,12 @@ { - "name": "Excel-export", + "name": "excel-export-example", "description": "Node Excel Export test app", "version": "0.3.1", "private": true, "dependencies": { - "excel-export": "0.3.9", + "excel-export2": "0.5.2", "express": "3.x", "node-uuid": "^1.4.1", - "node-zip": "1.x" + "jszip": "^2.6.0" } } diff --git a/index.js b/index.js index ea2dbc4..3db038d 100644 --- a/index.js +++ b/index.js @@ -1,16 +1,9 @@ -require('node-zip'); + var fs = require('fs'), Sheet = require('./sheet'), +JSZip = require('jszip'), SortedMap = require('collections/sorted-map'); -Date.prototype.getJulian = function() { - return Math.floor((this / 86400000) - (this.getTimezoneOffset() / 1440) + 2440587.5); -}; - -Date.prototype.oaDate = function() { - return (this - new Date(Date.UTC(1899, 11, 30))) / (24 * 60 * 60 * 1000); -}; - var templateXLSX = "UEsDBAoAAAAAABN7eUK9Z10uNQQAADUEAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbO+7vzw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9InV0Zi04Ij8+PFR5cGVzIHhtbG5zPSJodHRwOi8vc2NoZW1hcy5vcGVueG1sZm9ybWF0cy5vcmcvcGFja2FnZS8yMDA2L2NvbnRlbnQtdHlwZXMiPjxEZWZhdWx0IEV4dGVuc2lvbj0ieG1sIiBDb250ZW50VHlwZT0iYXBwbGljYXRpb24vdm5kLm9wZW54bWxmb3JtYXRzLW9mZmljZWRvY3VtZW50LnNwcmVhZHNoZWV0bWwuc2hlZXQubWFpbit4bWwiIC8+PERlZmF1bHQgRXh0ZW5zaW9uPSJy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AAAJAAAAAAAAAAAAEAAAACAOAAB4bC9fcmVscy9QSwECFAAKAAAAAAATe3lCJ0p8MrwCAAC8AgAAGgAAAAAAAAAAAAAAAABHDgAAeGwvX3JlbHMvd29ya2Jvb2sueG1sLnJlbHNQSwECFAAKAAAAAAATe3lCflKRBZAAAACQAAAAFAAAAAAAAAAAAAAAAAA7EQAAeGwvc2hhcmVkU3RyaW5ncy54bWxQSwECFAAKAAAAAAATe3lCItpbK3oIAAB6CAAADQAAAAAAAAAAAAAAAAD9EQAAeGwvc3R5bGVzLnhtbFBLAQIUAAoAAAAAAMWFeUIAAAAAAAAAAAAAAAAJAAAAAAAAAAAAEAAAAKIaAAB4bC90aGVtZS9QSwECFAAKAAAAAAATe3lCdbGRXrsbAAC7GwAAEgAAAAAAAAAAAAAAAADJGgAAeGwvdGhlbWUvdGhlbWUueG1sUEsBAhQACgAAAAAAE3t5QonecEa7AQAAuwEAAA8AAAAAAAAAAAAAAAAAtDYAAHhsL3dvcmtib29rLnhtbFBLAQIUAAoAAAAAAMWFeUIAAAAAAAAAAAAAAAAOAAAAAAAAAAAAEAAAAJw4AAB4bC93b3Jrc2hlZXRzL1BLBQYAAAAAEwATANQEAADIOAAAAAA="; var sheetsFront = '' + '' @@ -35,7 +28,7 @@ var shareStrings, convertedShareStrings; function generateMultiSheets(configs, xlsx) { var i = 1; configs.forEach(function(config) { - config.name = config.name ? config.name : ('sheet'+i); + config.name = config.name ? encodeURIComponent(config.name) : ('sheet'+i); i++; var sheet = new Sheet(config, xlsx, shareStrings, convertedShareStrings); sheet.generate(); @@ -62,16 +55,16 @@ function generateRel(configs,xlsx) { workbook += relBack; xlsx.file('xl/_rels/workbook.xml.rels', workbook); xlsx.file('_rels/.rels', '' - + '' - + '' + + '' + + '' + ''); } function generateWorkbook(configs,xlsx) { var workbook = sheetsFront; - var i = 1; + var i = 1; configs.forEach( function(config) { - workbook += ''; + workbook += ''; i++; }); workbook += sheetsBack; @@ -99,8 +92,8 @@ exports.execute = function(config) { checkCRC32: false }); shareStrings = new SortedMap(); - convertedShareStrings = ""; - + convertedShareStrings = ""; + var configs = []; if (config instanceof Array) { configs = config; @@ -110,7 +103,7 @@ exports.execute = function(config) { generateMultiSheets(configs, xlsx); generateWorkbook(configs, xlsx); generateRel(configs,xlsx) ; - generateContentType(configs, xlsx); + generateContentType(configs, xlsx); generateSharedStringsFile(xlsx); var results = xlsx.generate({ base64: false, diff --git a/package.json b/package.json index 6180b13..88910b7 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,21 @@ { - "name": "excel-export", - "version": "0.5.1", + "name": "excel-export2", + "version": "0.5.2", "description": "Simple data set export to Excel xlsx file", "main": "index.js", "scripts": { "test": "mocha test/main" }, - "repository": "https://github.com/functionscope/Node-Excel-Export", + "repository": "https://github.com/chendong0120/Node-Excel-Export", "keywords": [ "Excel", "xlsx" ], - "author": "Ber-Lin Lai ", + "author": "Kevin Chen ", "license": "BSD", "dependencies": { - "collections": "^3.0.0", - "node-zip": "1.x" + "collections": "^5.1.12", + "jszip": "^2.6.0" }, "devDependencies": { "mocha": "", diff --git a/sheet.js b/sheet.js index e63ffe7..0c556d7 100644 --- a/sheet.js +++ b/sheet.js @@ -1,16 +1,17 @@ -var sheetFront = '' - + ' ' - + ' '; +var sheetFront = '' + + ' ' + + ' '; var sheetBack =' ' + ' '; - + var fs = require('fs'); function Sheet(config, xlsx, shareStrings, convertedShareStrings){ this.config = config; this.xlsx = xlsx; this.shareStrings = shareStrings; - this.convertedShareStrings = convertedShareStrings; + this.convertedShareStrings = convertedShareStrings; } Sheet.prototype.generate = function(){ diff --git a/test/main.js b/test/main.js index 1d0d528..0357a94 100644 --- a/test/main.js +++ b/test/main.js @@ -2,6 +2,14 @@ var should = require('should'); var nodeExcel = require('../index'); +Date.prototype.getJulian = function() { + return Math.floor((this / 86400000) - (this.getTimezoneOffset() / 1440) + 2440587.5); +}; + +Date.prototype.oaDate = function() { + return (this - new Date(Date.UTC(1899, 11, 30))) / (24 * 60 * 60 * 1000); +}; + describe('Simple Excel xlsx Export', function() { describe('Export', function() { it('returns xlsx', function() {