https://github.com/techgaun/ex_csv2json
Module and mix task to convert csv to json
https://github.com/techgaun/ex_csv2json
Last synced: 9 months ago
JSON representation
Module and mix task to convert csv to json
- Host: GitHub
- URL: https://github.com/techgaun/ex_csv2json
- Owner: techgaun
- License: apache-2.0
- Created: 2016-09-27T07:21:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-12T05:41:50.000Z (over 7 years ago)
- Last Synced: 2025-02-11T21:52:21.698Z (11 months ago)
- Language: Elixir
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ExCsv2json
> Convert CSV to JSON
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed as:
1. Add `ex_csv2json` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:ex_csv2json, "~> 0.1.0"}]
end
```
2. Use ExCsv2Json in your code by aliasing/importing `ExCsv2Json` and calling `ExCsv2Json.convert`
3. Use `mix csv2json` to convert CSV file to JSON file.
```shell
$ mix help csv2json
The csv2json task takes given input csv file and converts it into json file
Examples
┃ mix csv2json -i -o
Command Line Options
• --infile / -i - input csv file
• --outfile / -o - output json file
```