Creates a wrapper around csvToJson that accepts Buffer or string with encoding detection.
CSV as Buffer or string
Options for csvToJson
Explicit encoding (default: 'auto')
Fallback if auto detection fails (default: 'utf8')
Promise with parsed JSON data
Creates a wrapper around csvToJson that accepts Buffer or string with encoding detection.