pub fn yaml_to_csv(yaml: &str) -> Result<String, Box<dyn Error>>Expand description
Converts YAML to CSV by composing yaml_to_json and json_to_csv.
ยงExamples
use sheeter_engine::yaml_to_csv;
let yaml = "- name: Alice\n age: '30'\n";
let csv = yaml_to_csv(yaml).unwrap();
assert_eq!(csv, "name,age\nAlice,30\n");