It's a CSV decoder for elixir language
If available in Hex, the package can be installed
by adding csv_decode
to your list of dependencies in mix.exs
:
def deps do
[
{:csv_decode, "~> 0.1.0"}
]
end
Use the main function something like that
alias CsvDecode
path = "./example_csv.csv"
schema = %{
"Active" => :boolean,
"Phone" => :string,
"School" => :string,
"State" => :string,
"System ID" => :integer
}
CsvDecode.decode(path, schema)
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/csv_decode.