Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 800 Bytes

README.md

File metadata and controls

43 lines (29 loc) · 800 Bytes

CsvDecode

It's a CSV decoder for elixir language

Installation

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

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.