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.
		
		
		
		
		
			
		
			
				
					16 lines
				
				445 B
			
		
		
			
		
	
	
					16 lines
				
				445 B
			| 
								 
											3 years ago
										 
									 | 
							
								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(fileLine, params) {
							 | 
						||
| 
								 | 
							
								  var lines = fileLine.lines;
							 | 
						||
| 
								 | 
							
								  var csvLines = csvline(lines,params);
							 | 
						||
| 
								 | 
							
								  return {
							 | 
						||
| 
								 | 
							
								    lines: csvLines.lines,
							 | 
						||
| 
								 | 
							
								    partial: csvLines.partial + fileLine.partial
							 | 
						||
| 
								 | 
							
								  };
							 | 
						||
| 
								 | 
							
								};
							 |