package janestreet_csv

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

Install

Dune Dependency

Authors

Maintainers

Sources

janestreet_csv-v0.16.0.tar.gz
sha256=c039eeef15bc68460984e74a003c3068da2e4854c4dc2cdcfec6be946f2b0a65

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.