{"id":19475389,"url":"https://github.com/erdian718/lmodxlsx","last_synced_at":"2026-05-14T18:06:43.633Z","repository":{"id":57502765,"uuid":"185128267","full_name":"erdian718/lmodxlsx","owner":"erdian718","description":"plandem/xlsx bindings for Lua.","archived":false,"fork":false,"pushed_at":"2019-07-01T14:08:28.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T06:31:53.067Z","etag":null,"topics":["excel","go","lua","ooxml","xlsx"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erdian718.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-06T05:20:15.000Z","updated_at":"2019-07-01T14:08:29.000Z","dependencies_parsed_at":"2022-09-02T01:51:45.008Z","dependency_job_id":null,"html_url":"https://github.com/erdian718/lmodxlsx","commit_stats":null,"previous_names":["ofunc/lmodxlsx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdian718%2Flmodxlsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdian718%2Flmodxlsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdian718%2Flmodxlsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdian718%2Flmodxlsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erdian718","download_url":"https://codeload.github.com/erdian718/lmodxlsx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240699023,"owners_count":19843508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["excel","go","lua","ooxml","xlsx"],"created_at":"2024-11-10T19:32:22.502Z","updated_at":"2026-05-14T18:06:38.401Z","avatar_url":"https://github.com/erdian718.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lmodxlsx\n\n[plandem/xlsx](https://github.com/plandem/xlsx) bindings for [Lua](https://github.com/ofunc/lua).\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"ofunc/lmodxlsx\"\n\t\"ofunc/lua/util\"\n)\n\nfunc main() {\n\tl := util.NewState()\n\tl.Preload(\"xlsx\", lmodxlsx.Open)\n\tutil.Run(l, \"main.lua\")\n}\n```\n\n```lua\nlocal xlsx = require 'xlsx'\n\nlocal xl, err = xlsx.open('test.xlsx')\nassert(err == nil, err)\n\nprint(xl:sheet(1):cell('A1').value)\n\nxl:close()\n```\n\n## Dependencies\n\n* [ofunc/lua](https://github.com/ofunc/lua)\n* [plandem/xlsx](https://github.com/plandem/xlsx)\n\n## Documentation\n\n### xlsx.open(x)\n\nOpens a XLSX file with name or io.reader.\n\n### xlsx.fromtime(x)\n\nConverts Lua time value to XLSX number value.\n\n### xlsx.totime(x)\n\nConverts XLSX number value to Lua time value.\n\n### spreadsheet:sheet(x[, stream])\n\nReturns a sheet by index or name.\nIf `stream` is `true`, only forward reading/writing is allowed.\n\n### spreadsheet:sheets()\n\nReturns iterator for all sheets of spreadsheet.\n\n### spreadsheet:addsheet(name)\n\nAdds a new sheet with `name` to document.\n\n### spreadsheet:save([name])\n\nSaves current XLSX file with `name`.\n\n### spreadsheet:close()\n\nCloses current XLSX file.\n\n### sheet:range(ref)\n\nReturns a range for `ref`.\n\n### sheet:cell(c[, r])\n\nReturns a cell for indexes or ref.\n\n### sheet:col(i)\n\nReturns a col for index.\n\n### sheet:row(i)\n\nReturns a row for index.\n\n### sheet:cols()\n\nReturns iterator for all cols of sheet.\n\n### sheet:rows()\n\nReturns iterator for all rows of sheet.\n\n### sheet:inscol(i)\n\nInserts a col at index and returns it.\n\n### sheet:insrow(i)\n\nInserts a row at index and returns it.\n\n### sheet:delcol(i)\n\nDeletes a col at index.\n\n### sheet:delrow(i)\n\nDeletes a row at index.\n\n### sheet:dim()\n\nReturns total number of cols and rows in sheet.\n\n### sheet:setdim(ncol, nrow)\n\nSets total number of cols and rows in sheet.\n\n### sheet:set(options)\n\nSets options for sheet.\n```\nactive: boolean\nvisibility: 'visible' | 'hidden' | 'veryhidden'\n```\n\n### sheet:close()\n\nFrees allocated by sheet resources.\n\n### sheet.name\n\nThe name of the sheet.\nIt's readable and writable.\n\n### range:bounds()\n\nReturns bounds of range: `fromcol`, `fromrow`, `tocol`, `torow`.\n\n### range:cells()\n\nReturns iterator for all cells in range.\n\n### range:clear()\n\nClears each cell value in range.\n\n### range:reset()\n\nResets each cell data into zero state.\n\n### range:copyto(cidx, ridx)\n\nCopies range cells into another range starting indexes cidx and ridx.\nMerged cells are not supported.\n\n### range:merge()\n\nMerges range.\n\n### range:split()\n\nSplits cells in range.\n\n### range:format(s)\n\nSets style format to all cells in range.\n\n### range:link(l)\n\nSets hyperlink for range.\n\n### col:cell(ridx)\n\nReturns cell of col at row with `ridx`.\n\n### col:cells()\n\nReturns iterator for all cells in col.\n\n### col:clear()\n\nClears each cell value in col.\n\n### col:reset()\n\nResets each cell data into zero state.\n\n### col:copyto(cidx[, withoptions])\n\nCopies col cells into another col with `cidx`.\nMerged cells are not supported.\n\n### col:set(options)\n\nSets options for column.\n```\nlevel: integer (1 - 8)\ncollapsed: boolean\nphonetic: boolean\nhidden: boolean\nwidth: number\n```\n\n### col.format\n\nDefault style for the column.\nIt's readable and writable.\n\n### col.index\n\nCol index of the column.\nIt's read only.\n\n### row:cell(cidx)\n\nReturns cell of col at col with `cidx`.\n\n### row:cells()\n\nReturns iterator for all cells in row.\n\n### row:clear()\n\nClears each cell value in row.\n\n### row:reset()\n\nResets each cell data into zero state.\n\n### row:copyto(ridx[, withoptions])\n\nCopies col cells into another row with `ridx`.\nMerged cells are not supported.\n\n### row:set(options)\n\nSets options for row.\n```\nlevel: integer (1 - 8)\ncollapsed: boolean\nphonetic: boolean\nhidden: boolean\nheight: number\n```\n\n### row.format\n\nDefault style for the row.\nIt's readable and writable.\n\n### row.index\n\nCol index of the row.\nIt's read only.\n\n### cell:clear()\n\nClears cell's value.\n\n### cell:reset()\n\nResets current current cell information.\n\n### cell.value\n\nThe value of the cell.\nIt's readable and writable.\n\n### cell.format\n\nDefault style for the cell.\nIt's readable and writable.\n\n### cell.link\n\nThe hyperlink for the cell.\nIt's readable and writable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdian718%2Flmodxlsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferdian718%2Flmodxlsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdian718%2Flmodxlsx/lists"}