forked from sheetjs/sheetjs
		
	- read and write support for Flat ODS files - read support for Uniform Office Spreadsheet (UOS) - IE6-8 cell regex split fix (fixes #350 #140 #268 h/t @Aymkdn @C0d3ine) - replace substr negative index with slices (fixes #351 h/t @Aymkdn) - ODS parsexmltag ignores ext overrides (fixes #548 h/t @lgodard) - csv can be written using write/writeFile with csv type - added `type` to README (fixes #432 h/t @tomkel)
		
			
				
	
	
		
			13 lines
		
	
	
		
			467 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			467 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /* Part 3: Packages */
 | |
| function parse_ods(zip/*:ZIPFile*/, opts/*:?ParseOpts*/) {
 | |
| 	opts = opts || ({}/*:any*/);
 | |
| 	var ods = !!safegetzipfile(zip, 'objectdata');
 | |
| 	if(ods) var manifest = parse_manifest(getzipdata(zip, 'META-INF/manifest.xml'), opts);
 | |
| 	var content = getzipdata(zip, 'content.xml');
 | |
| 	return parse_content_xml(ods ? content : utf8read(content), opts);
 | |
| }
 | |
| 
 | |
| function parse_fods(data/*:string*/, opts/*:?ParseOpts*/) {
 | |
| 	return parse_content_xml(data, opts);
 | |
| }
 |