8000 GitHub - schaary/elixlsx: An Elixir XLSX writer
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

schaary/elixlsx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elixlsx

Hex Version Build Status

A writer for XLSX files.

Features:

  • Multiple (named) sheets with custom column widths & column heights.
  • (Unicode-)strings, Numbers, Dates
  • Font formatting (size, bold, italic, underline, strike)
  • Horizontal alignment and text wrapping
  • Font and cell background color, borders
  • Merged cells

Installation

Via hex, in mix.exs:

defp deps do
  [{:elixlsx, "~> 0.3.0"}]
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 examples how to use the various features.

Number and date formatting reference

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

About

An Elixir XLSX writer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 99.7%
  • Shell 0.3%
0