{"id":13641179,"url":"https://github.com/mogsdad/SheetConverter","last_synced_at":"2025-04-20T07:32:15.399Z","repository":{"id":20708292,"uuid":"23992177","full_name":"mogsdad/SheetConverter","owner":"mogsdad","description":"Google Apps Script library - interprets Google Sheets Formats, converts to formatted text or html","archived":false,"fork":false,"pushed_at":"2023-09-06T12:12:57.000Z","size":31,"stargazers_count":49,"open_issues_count":13,"forks_count":26,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-08-03T01:20:08.500Z","etag":null,"topics":[],"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/mogsdad.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}},"created_at":"2014-09-13T10:58:34.000Z","updated_at":"2024-05-13T04:33:52.000Z","dependencies_parsed_at":"2022-09-06T12:50:35.935Z","dependency_job_id":null,"html_url":"https://github.com/mogsdad/SheetConverter","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/mogsdad%2FSheetConverter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mogsdad%2FSheetConverter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mogsdad%2FSheetConverter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mogsdad%2FSheetConverter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mogsdad","download_url":"https://codeload.github.com/mogsdad/SheetConverter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223822085,"owners_count":17208804,"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":[],"created_at":"2024-08-02T01:01:18.508Z","updated_at":"2024-11-09T11:30:50.930Z","avatar_url":"https://github.com/mogsdad.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"SheetConverter library (formerly \"Spreadsheet to HTML\")\n==============\n\nGoogle Apps Script library - interprets Google Sheets Formats, converts to formatted text or html\n\nThis is the source repository for the [SheetConverter Google Apps Script library](https://sites.google.com/site/scriptsexamples/custom-methods/sheetconverter).\n\nLibary documentation is [available here](https://script.google.com/macros/library/d/Mo6Ljr7ZKrMeYO9mHqOdo9oxc-w7mEonb/5).\n\n## Caveats ##\n\nThis script is incomplete, ignoring some types of formatting. (Feel free to fork and enhance it, if you wish! Broadly applicable enhancements can be merged and the library updated) There are also some known issues:\n\n - It produces \u003cdel\u003eWAY too much\u003c/del\u003e *a minimal amount* of inline style for each cell. It would be nicer if it could optionally generate and reuse css class styles where possible. (On the flip side - this is just what is needed for embedding into gmail, so if it's changed, it should support both.)\n - The general table style, including borders, is set in the `tableFormat` variable. Since there is no way to determine what borders are in place on a spreadsheet, it isn't possible to transfer them. (Possible enhancement: support a parameter for borders.)\n - \u003cdel\u003eNumeric formatting can be read from a spreadsheet, but is not directly adaptable in Javascript, so numbers aren't rendered as they appear in the spreadsheet\u003c/del\u003e. Most formats are now supported! Fractions are very slow. Custom formats can only be supported best-effort. Further extension of special negative numbering is needed (e.g. support for brackets \u0026 colours). Locale-based radix \u0026 thousand separators are also a future extension.\n - No special treatment for table headers - that would be a nice addition, allowing adoption of existing css.\n - Overflow is not supported; wrap is applied to all cells.\n - Images and charts aren't supported.\n\n## License ##\n\nA BSD 2-clause license applies.\n\nCopyright (c) 2014, David Bingham\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n## To use ##\n\n    var ss = SpreadsheetApp.getActiveSpreadsheet(); \n    var sheet = ss.getActiveSheet();\n    var range = sheet.getDataRange();\n    var htmlTable = getHtmlTable(range);  // Produce HTML table of entire spreadsheet\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmogsdad%2FSheetConverter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmogsdad%2FSheetConverter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmogsdad%2FSheetConverter/lists"}