{"repo":"LibreCat/Catmandu","free":true,"listed":false,"github":"https://github.com/LibreCat/Catmandu","clone":"git clone https://github.com/LibreCat/Catmandu.git","description":"Catmandu - a data processing toolkit","language":"Perl","stars":197,"topics":["code4lib","cli","csv","data-processing","datamining","ead","json","lido","mab","marc21"],"license":null,"category":"cli-tools","readme_excerpt":"NAME Catmandu::Introduction - A 5 minute introduction to Catmandu HELLO WORLD $ catmandu convert Null --fix 'add field(hello,world)' [{\"hello\":\"world\"}] The example above generates the JSON output [{\"hello\":\"world\"}] on the standard output. We asked the Catmandu processor to convert an empty input ( Null ) and add one property hello with value world . We can ask Catmandu not to generate the default JSON output but convert to a YAML output: $ catmandu convert Null --fix 'add field(hello,world)' to YAML --- hello: world ... FORMAT to FORMAT Catmandu can be used to convert an input format to an output format. Use the keyword to on the command line: $ cat file.yaml --- hello: world ... $ catmandu convert YAML to JSON < file.yaml [{\"hello\":\"world\"}] The left part of the to keyword is called the Importer , the right part of the to keyword is called the Exporter . Catmandu provides Importers and Exports for many formats. OPTIONS Each Importer and Exporter can have options that change the behavior of conversion. The options can be read using the perldoc command on each Importer and Exports: perldoc Catmandu::Importer::YAML perldoc Catmandu::Exporter::JSON Note, many formats are available as Importer and Exporter. As an example, we can use a JSON Exporter option pretty to provide a pretty printed version of the JSON: $ catmandu convert YAML to JSON --pretty 1 < file.yaml [{ \"hello\" : \"world\" }] FIX LANGUAGE Many data conversions need a mapping from one field to another field plus opti","default_branch":null,"files":null,"tree":[],"storefront":"/r/LibreCat","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/LibreCat/Catmandu/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}