Lightweight 35mb multi-arch Docker image to convert xlsx, csv, sql, json, etc..
1.6K
This is a lightweight (~35mb compressed) Docker image that will convert files to/from xlsx, csv, sql, json, etc.. using csvkit.
Get a list of all the command utilities:
docker run --rm -i jtmotox/csvkit
Convert the sample.xlsx file in ./directory/of/xlsx/files to sample.csv:
docker run --rm -i -v "./directory/of/xlsx/files:/data" jtmotox/csvkit sh -c "in2csv sample.xlsx >sample.csv"
Output to stdout instead of saving to csv file:
docker run --rm -i -v "./directory/of/xlsx/files:/data" jtmotox/csvkit sh -c "in2csv sample.xlsx"
Parse xlsx files using jq:
docker run --rm -i -v "./directory/of/xlsx/files:/data" jtmotox/csvkit sh -c "in2csv sample.xlsx | csvjson | jq -r '.'"
Content type
Image
Digest
sha256:eeb81d46b…
Size
38.5 MB
Last updated
7 months ago
docker pull jtmotox/csvkit