{"id":21997731,"url":"https://github.com/osfunapps/os-excel-handler-npm","last_synced_at":"2025-03-23T04:45:21.137Z","repository":{"id":98762354,"uuid":"208878809","full_name":"osfunapps/os-excel-handler-npm","owner":"osfunapps","description":"A helper to deal with excel files","archived":false,"fork":false,"pushed_at":"2021-02-07T14:40:41.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T11:32:34.243Z","etag":null,"topics":["excel","handlers","helpers","managers","microsoft","office","osfunapps","tools"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osfunapps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-16T19:16:26.000Z","updated_at":"2023-09-08T17:58:04.000Z","dependencies_parsed_at":"2023-05-25T05:30:08.224Z","dependency_job_id":null,"html_url":"https://github.com/osfunapps/os-excel-handler-npm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos-excel-handler-npm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos-excel-handler-npm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos-excel-handler-npm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos-excel-handler-npm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osfunapps","download_url":"https://codeload.github.com/osfunapps/os-excel-handler-npm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245056902,"owners_count":20553854,"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","handlers","helpers","managers","microsoft","office","osfunapps","tools"],"created_at":"2024-11-29T22:17:53.951Z","updated_at":"2025-03-23T04:45:21.120Z","avatar_url":"https://github.com/osfunapps.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\n------------\n\nThis module contains functions to deal with excel files.\n\n## Installation\nInstall via npm:\n    \n    npm i os-excel-handler\n\n\n## Usage       \nRequire excel handler:\n```js\nvar eh = require(\"os-excel-handler\")\n```\n## Functions and signatures:\n```js\n/**\n * Will merge a few cells together.\n *\n * @param sheet -\u003e the sheet you work on\n * @param cellIdStart -\u003e like A1\n * @param cellIdEnd -\u003e like A2\n */\nmergeCells(sheet, cellIdStart, cellIdEnd)\n\n/**\n * Will set a default font to all of the empty cells in the sheet.\n */\nsetFontInAllEmptyCells(sheet, name='Arial', size=12, bold=false, italic=false)\n\n/**\n * Will fit the column width to be in the size of the biggest line in the column\n */\nfitColumnWidthToText(sheet, colLetter)\n\n/**\n * Also called wrap text. Will set the height of the line to be in the size of the cell content.\n */\nwrapText(sheet, cellId) \n\n/**\n * Will align the text in the cell to be in the middle and center\n */\nalignCenter(sheet, cellId)\n\n/**\n * Will read a value from a given cell identifier\n *\n * @param sheet -\u003e the current sheet obj\n * @param cellId -\u003e row and column identifier. Like A4\n */\nreadValue(sheet, cellId)\n\n/**\n * Will set a value in a given cell id\n *\n * @param sheet -\u003e the current sheet obj\n * @param cellId -\u003e row and column identifier. Like A4\n * @param value -\u003e the value you would like to write\n * @param fontName -\u003e the name of the font in the cell\n * @param fontSize -\u003e the font size in the cell\n * @param bold -\u003e font bold toggle\n * @param italic -\u003e font italic toggle\n */\nsetValue(sheet, cellId, value, fontName='Arial', fontSize=12, bold=false, italic=false)\n\n/**\n * Will add a sheet to the workbook\n */\ncreateSheet(wb, sheetName, rtl = false)\n\n/**\n * Will create a new workbook to start the work on\n */\ncreateWorkbook()\n\n/**\n *  Will save the workbook in a given path\n */\nsaveWorkbook: async function (wb, workbookPath)\n\n/**\n * Will set the background color of a given cell\n */\nsetCellBackgroundColor(sheet, cellId, hexColor)\n\n/**\n * Will set the text color of the text in a given cell\n */\nsetCellTextColor(sheet, cellId, hexColor)\n```\n\nAnd more...\n\n\n## Links -\u003e see more tools\n* [os-tools-npm](https://github.com/osfunapps/os-tools-npm) -\u003e This module contains fundamental functions to implement in an npm project\n* [os-file-handler-npm](https://github.com/osfunapps/os-file-handler-npm) -\u003e This module contains fundamental files manipulation functions to implement in an npm project\n* [os-file-stream-handler-npm](https://github.com/osfunapps/os-file-stream-handler-npm) -\u003e This module contains read/write and more advanced operations on files\n* [os-xml-handler-npm](https://github.com/osfunapps/os-xml-handler-npm) -\u003e This module will build, read and manipulate an xml file. Other handy stuff is also available, like search for specific nodes\n\n[GitHub - osfunappsapps](https://github.com/osfunapps)\n\n\n\n## Licence\nISC","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosfunapps%2Fos-excel-handler-npm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosfunapps%2Fos-excel-handler-npm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosfunapps%2Fos-excel-handler-npm/lists"}