xls
Version, currently 0.3.04 versions
- 0.4.1latestJul 31, 2022
- 0.4.0not indexedJul 31, 2022
- 0.3.0not indexedJul 31, 2022
- 0.2.0not indexedJul 31, 2022
github.com/mdwagner/xls.cr
Crystal bindings to libxls
Nothing has been indexed for 0.3.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
xls:
github: mdwagner/xls.cr
version: ~> 0.3.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.3.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
xls
Crystal bindings to libxls to read old Excel files (.xls)
Installation
-
Install libxls
-
Add the dependency to your
shard.yml:dependencies: xls: github: mdwagner/xls.cr version: 0.4.1 -
Run
shards install
Usage
require "xls"
# Simple example of usage
Xls::Spreadsheet.open(Path.new("./example.xls")) do |s|
skip_first_ws_puts = true
s.worksheets.each do |ws|
puts unless skip_first_ws_puts
puts "Sheet: #{ws.name}"
skip_first_row_puts = true
ws.rows.each_with_index do |row, row_index|
puts unless skip_first_row_puts
puts "Row: #{row_index + 1}"
row.cells.each_with_index do |cell, cell_index|
puts "Cell: #{cell_index + 1}, Value: #{cell.value}"
end
skip_first_row_puts = false
end
skip_first_ws_puts = false
end
end
Look at examples/ folder for more examples of different usage.
Contributors
- Michael Wagner - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.3.0- Tagged
- Jul 31, 2022
- Commit
668bb5992c4e- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/mdwagner/xls.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 4