| 
									
										
										
										
											2013-03-31 22:56:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | if(typeof require !== 'undefined' && typeof exports !== 'undefined') { | 
					
						
							|  |  |  | 	exports.read = XLSX.read; | 
					
						
							|  |  |  | 	exports.readFile = XLSX.readFile; | 
					
						
							| 
									
										
										
										
											2013-11-12 16:29:53 +00:00
										 |  |  | 	exports.utils = XLSX.utils; | 
					
						
							| 
									
										
										
										
											2013-03-31 22:56:45 +00:00
										 |  |  | 	exports.main = function(args) { | 
					
						
							|  |  |  | 		var zip = XLSX.read(args[0], {type:'file'}); | 
					
						
							|  |  |  | 		console.log(zip.Sheets); | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | if(typeof module !== 'undefined' && require.main === module) | 
					
						
							|  |  |  | 	exports.main(process.argv.slice(2)); | 
					
						
							|  |  |  | } |