You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					18 lines
				
				507 B
			
		
		
			
		
	
	
					18 lines
				
				507 B
			| 
											3 years ago
										 | var fileline=require("./fileline"); | ||
|  | var csvline=require("./csvline"); | ||
|  | /** | ||
|  |  * Convert data chunk to csv lines with cols | ||
|  |  * @param  {[type]} data   [description] | ||
|  |  * @param  {[type]} params [description] | ||
|  |  * @return {[type]}    {lines:[[col1,col2,col3]],partial:String} | ||
|  |  */ | ||
|  | module.exports = function(data, params) { | ||
|  |   var line = fileline(data, params); | ||
|  |   var lines = line.lines; | ||
|  |   var csvLines = csvline(lines, params); | ||
|  |   return { | ||
|  |     lines: csvLines.lines, | ||
|  |     partial: csvLines.partial + line.partial | ||
|  |   }; | ||
|  | }; |