Parse CSV string into array of arrays Converts CSV text data into a structured format for processing in pricing scripts
CSV string to parse
Optional
options: CsvOptionsParsing options to configure delimiter, quote character, etc.
Optional
disableNumberConversion: booleanWhether to disable automatic number conversion
Array of arrays representing the CSV data, where each inner array is a row
var csvData = HelperMethods.CSV.parse("1,Product A,10.99\n2,Product B,15.50");
// Result: [["1", "Product A", "10.99"], ["2", "Product B", "15.50"]]
Convert array of arrays to CSV string Converts structured data back to CSV format for output or file generation
Array of arrays to convert, where each inner array is a row
Optional
options: CsvStringifyOptionsStringify options to configure output format
CSV string representation of the data
var data = [["1", "Product A", "10.99"], ["2", "Product B", "15.50"]];
var csvString = HelperMethods.CSV.stringify(data);
// Result: "1,Product A,10.99\n2,Product B,15.50"
Generated using TypeDoc
CSV helper methods for parsing and stringifying CSV data Provides utilities for working with CSV files and data in pricing scripts