wuming123057 / elixlsx

An Elixir XLSX writer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elixlsx

A writer for XLSX files.

Supports:

  • (Unicode-)strings, Numbers, Dates
  • Font formatting (size, bold, italic, underline, strike, color)
  • Multiple (named) sheets with custom column widths.

This library is currently more in a proof-of-concept state; it is also my first Elixir project, feedback is very welcome.

Installation

Via hex, in mix.exs:

defp deps do
  [{:elixlsx, "~> 0.0.1"}]
end

Via github:

defp deps do
  [{:elixlsx, git: "https://github.com/xou/elixlsx.git"}]
end

Usage

1-Line tutorial:

(alias Elixlsx.Workbook, alias Elixlsx.Sheet)
iex(1)> Workbook.append_sheet(%Workbook{}, Sheet.with_name("Sheet 1") |> Sheet.set_cell("A1", "Hello", bold: true)) |> Elixlsx.write_to("hello.xlsx")

See example.exs for a more complete example.

Number and date formatting reference

A quick introduction how number formattings look like can be found here

About

An Elixir XLSX writer

License:MIT License


Languages

Language:Elixir 99.7%Language:Shell 0.3%