Input options
Parsed input with normalized data array
If parsing fails or format cannot be determined
If file path does not exist
// From file (auto-detect format)
const result = await parseInput({ from: 'tickets.csv' });
// From string (explicit format)
const result = await parseInput({
data: 'Project,Summary\nENG,Test',
format: 'csv'
});
// From array (pass-through)
const result = await parseInput({
data: [{ Project: 'ENG' }]
});
Parse input data from various sources and formats.
Supports:
Auto-detects format from file extension (.csv, .json, .yaml, .yml) Requires explicit
formatparameter for string/array data.