{"id":21094093,"url":"https://github.com/archakov06/jquery.tableexport","last_synced_at":"2025-05-16T14:32:46.227Z","repository":{"id":57282417,"uuid":"59701726","full_name":"Archakov06/jQuery.tableExport","owner":"Archakov06","description":"This is a simple jQuery plug-in that allows exporting html tables to: CSV, XLS, TXT, SQL.","archived":false,"fork":false,"pushed_at":"2018-01-07T23:13:11.000Z","size":31,"stargazers_count":46,"open_issues_count":4,"forks_count":31,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-16T05:41:47.866Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Archakov06.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":"2016-05-25T22:22:16.000Z","updated_at":"2023-09-11T15:39:55.000Z","dependencies_parsed_at":"2022-09-18T16:27:51.718Z","dependency_job_id":null,"html_url":"https://github.com/Archakov06/jQuery.tableExport","commit_stats":null,"previous_names":["archakov06/jquery-tableexport"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archakov06%2FjQuery.tableExport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archakov06%2FjQuery.tableExport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archakov06%2FjQuery.tableExport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Archakov06%2FjQuery.tableExport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Archakov06","download_url":"https://codeload.github.com/Archakov06/jQuery.tableExport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225433466,"owners_count":17473599,"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-11-19T22:16:15.091Z","updated_at":"2024-11-19T22:16:15.844Z","avatar_url":"https://github.com/Archakov06.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## jQuery Table Exporter\n\nThis is a simple jQuery plug-in that allows exporting html tables to _CSV_,\n_XLS_, _TXT_, _SQL_, _JSON_.\n\n![Example work](http://archakov.im/uploads/tableExport-1.gif)\n\n## Usage\n\nImport the script before `\u003c/body\u003e`:\n\n```html\n\u003cscript type=\"text/javascript\" src=\"tableExport.js\"\u003e\u003c/script\u003e\n```\n\nAnd add this code to your javascript file:\n\n```javascript\n$('.table').tableExport({\n  filename: 'table',\n  format: 'csv',\n});\n```\n\n`.table` - The class name of the exported table.\n\n(or using options):\n\n```javascript\n$('.table').tableExport({\n  filename: 'table_%DD%-%MM%-%YY%', // the filename prefix + date format (the extension is automatic)\n  format: 'xls', // type of your export file: csv, xls, txt, sql, json\n  cols: '2,3,4', // export of specified columns\n});\n```\n\n### Exclude columns\n\n```javascript\n$('.table').tableExport({\n  filename: 'table_%DD%-%MM%-%YY%',\n  format: 'csv',\n  excludeCols: '1,5',\n});\n```\n\n### Call events\n\n```javascript\n$('.table').tableExport({\n  filename: 'table_%DD%-%MM%-%YY%',\n  onbefore: function() {\n    alert('The export of tables begins!');\n  },\n  onafter: function() {\n    alert('Export complete :)');\n  },\n});\n```\n\n## Date format\n* **%DD%** — day\n* **%MM%** — month\n* **%YY%** — year\n* **%hh%** — hours\n* **%mm%** — minutes\n* **%ss%** — seconds\n\n## Options\n\n* **filename** — the name of the exported file (without extension)\n* **format** — the export file format (only: csv, xls, txt, sql, json)\n* **cols** — select specific columns for export\n* **excludeCols** — excludes specified columns when exporting\n* **head_delimiter** — separator for titles when exporting\n* **column_delimiter** — separator for column when exporting\n* **onbefore(this)** — Function to call before trigger is called\n* **onafter(this)** — Function to call after trigger is called\n\n## Demos\n\nMore demos in the examples folder. Or on the links below :)\n\n* **[Example #1](https://htmlpreview.github.io/?https://github.com/Archakov06/jQuery.tableExport/blob/master/examples/example_1.html)**\n* **[Example #2](https://htmlpreview.github.io/?https://github.com/Archakov06/jQuery.tableExport/blob/master/examples/example_2.html)**\n\n## To Do\n\n* [x] Parsing date\n* [x] Exporting SQL\n* [x] Support Safari browser\n\n#### 30.11.2017\n\n* UPD: JSON Exporting\n* Bug fixes\n\n## Contacts\n* **E-Mail**: \u003chello@archakov.im\u003e\n* **Website**: \u003chttps://archakov.im\u003e\n\n## License\n\nNow licensed under the MIT License: \u003chttp://deuxhuithuit.mit-license.org\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchakov06%2Fjquery.tableexport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchakov06%2Fjquery.tableexport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchakov06%2Fjquery.tableexport/lists"}