{"id":13614574,"url":"https://github.com/faisalman/simple-excel-js","last_synced_at":"2025-05-08T19:38:50.529Z","repository":{"id":7378774,"uuid":"8705965","full_name":"faisalman/simple-excel-js","owner":"faisalman","description":"SimpleExcel.js - WIP client-side script to parse / convert / write XML / CSV / TSV / HTML / JSON / etc formats.","archived":false,"fork":false,"pushed_at":"2016-11-25T11:53:10.000Z","size":49,"stargazers_count":191,"open_issues_count":14,"forks_count":73,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-01T04:59:35.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://faisalman.github.io/simple-excel-js/","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/faisalman.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":"2013-03-11T15:03:58.000Z","updated_at":"2024-11-23T02:25:09.000Z","dependencies_parsed_at":"2022-08-06T20:01:11.617Z","dependency_job_id":null,"html_url":"https://github.com/faisalman/simple-excel-js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faisalman%2Fsimple-excel-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faisalman%2Fsimple-excel-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faisalman%2Fsimple-excel-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faisalman%2Fsimple-excel-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faisalman","download_url":"https://codeload.github.com/faisalman/simple-excel-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253136738,"owners_count":21859845,"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-01T20:01:03.325Z","updated_at":"2025-05-08T19:38:50.505Z","avatar_url":"https://github.com/faisalman.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# SimpleExcel.js\n\nClient-side script to easily parse / convert / write any Microsoft Excel XLSX / XML / CSV / TSV / HTML / JSON / etc formats. As for server-side solution you might want to check [SimpleExcelPHP](https://github.com/faisalman/simple-excel-php)\n\n## Example\n\n```html\n\u003c!doctype html\u003e\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003cscript type=\"text/javascript\" src=\"simple-excel.js\"\u003e\u003c/script\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e\n        \u003cinput type=\"file\" id=\"fileInput\" /\u003e\u003cbr/\u003e\n        \u003cinput type=\"button\" id=\"fileExport\" /\u003e\n        \u003cscript type=\"text/javascript\"\u003e\n\n            // read a CSV file\n            var csvParser = new SimpleExcel.Parser.CSV();\n            var fileInput = document.getElementById('fileInput');\n            // parse when file loaded, then print the result to console\n            fileInput.addEventListener('change', function (e) {            \n                var file = e.target.files[0];\n                csvParser.loadFile(file, function () {\n                    console.log(csvParser.getSheet()); // print!\n                });\n            });\n\n            // write an XLSX file            \n            var xlsxWriter = new SimpleExcel.Writer.XLSX();\n            var xlsxSheet = new SimpleExcel.Sheet();\n            var Cell = SimpleExcel.Cell;\n            xlsxSheet.setRecord([\n                [new Cell('ID', 'TEXT'), new Cell('Nama', 'TEXT'), new Cell('Kode Wilayah', 'TEXT')],\n                [new Cell(1, 'NUMBER'), new Cell('Kab. Bogor', 'TEXT'), new Cell(1, 'NUMBER')],\n                [new Cell(2, 'NUMBER'), new Cell('Kab. Cianjur', 'TEXT'), new Cell(1, 'NUMBER')],\n                [new Cell(3, 'NUMBER'), new Cell('Kab. Sukabumi', 'TEXT'), new Cell(1, 'NUMBER')],\n                [new Cell(4, 'NUMBER'), new Cell('Kab. Tasikmalaya', 'TEXT'), new Cell(2, 'NUMBER')]\n            ]);\n            xlsxWriter.insertSheet(xlsxSheet);\n            // export when button clicked\n            document.getElementById('fileExport').addEventListener('click', function () {            \n                xlsxWriter.saveFile(); // pop! (\"Save As\" dialog appears)\n            });\n\n        \u003c/script\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## License\n\nGPLv2 \u0026 MIT License\n\nCopyright © 2013 Faisalman \u003c\u003cfyzlman@gmail.com\u003e\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaisalman%2Fsimple-excel-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaisalman%2Fsimple-excel-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaisalman%2Fsimple-excel-js/lists"}