package janestreet_csv

  1. Overview
  2. Docs
Tools for working with CSVs on the command line

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=8940b4aa979a3bd5993b52d36cd768fd3bd5d1fb11c36c9c269ee646c7511a41

doc/src/janestreet_csv.csv_tool_lib/to_ascii_table.ml.html

Source file to_ascii_table.ml

1
2
3
4
5
6
7
8
9
10
11
12
open Csv_common

let run ?separator ?limit_width_to ?(prefer_split_on_spaces = true) file =
  Or_file.with_all file ?separator ~f:(fun csv ->
    let open Ascii_table in
    simple_list_table
      ~display:Display.short_box
      ?limit_width_to
      ~prefer_split_on_spaces
      csv.header
      csv.lines)
;;
OCaml

Innovation. Community. Security.