{"id":34746445,"url":"https://github.com/vastblast/html-table-parser-node","last_synced_at":"2026-05-25T06:06:57.939Z","repository":{"id":184491283,"uuid":"650895640","full_name":"VastBlast/html-table-parser-node","owner":"VastBlast","description":"Node.js library that allows parsing HTML tables into multi-level objects","archived":false,"fork":false,"pushed_at":"2024-01-08T12:36:07.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T22:49:03.800Z","etag":null,"topics":["html","htmltableparser","parse","parser","table"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VastBlast.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-08T03:38:41.000Z","updated_at":"2023-06-11T01:36:09.000Z","dependencies_parsed_at":"2023-12-13T01:44:53.189Z","dependency_job_id":"ed528f91-1358-466c-b3e4-ee4cd91663f7","html_url":"https://github.com/VastBlast/html-table-parser-node","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"1944ca82eea7eed036d47fbac339225a721cfcb5"},"previous_names":["vastblast/html-table-parser-node"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VastBlast/html-table-parser-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VastBlast%2Fhtml-table-parser-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VastBlast%2Fhtml-table-parser-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VastBlast%2Fhtml-table-parser-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VastBlast%2Fhtml-table-parser-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VastBlast","download_url":"https://codeload.github.com/VastBlast/html-table-parser-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VastBlast%2Fhtml-table-parser-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33462501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T02:24:28.008Z","status":"ssl_error","status_checked_at":"2026-05-25T02:23:23.339Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["html","htmltableparser","parse","parser","table"],"created_at":"2025-12-25T04:43:36.439Z","updated_at":"2026-05-25T06:06:57.934Z","avatar_url":"https://github.com/VastBlast.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HtmlTableParser\n\n`HtmlTableParser` is a Node.js library that allows parsing HTML tables into JavaScript objects.\n\n## Installation\n\nTo install `HtmlTableParser`, simply run:\n\n```bash\nnpm install html-table-parser-node --save\n```\n\n## Usage\n\nTo use `HtmlTableParser`, require the library and create a new instance with the HTML content to be parsed:\n\n```javascript\nconst HtmlTableParser = require('html-table-parser-node');\n\nconst html = '\u003ctable\u003e...\u003c/table\u003e'; // HTML content containing tables to be parsed\nconst parser = new HtmlTableParser(html);\n```\n\nYou can also provide optional configuration options to the constructor:\n\n```javascript\nconst parser = new HtmlTableParser(html, {\n    trim_keys: false, // Whether to trim the keys of table headers\n    lowercase_keys: false, // Whether to convert the keys of table headers to lowercase\n    remove_double_whitespaces: false, // Whether to remove double whitespaces from the keys of table headers\n    replace_whitespaces_keys: '-', // Whether to replace whitespaces in the keys of table headers\n});\n```\n\nOnce you have created a parser, you can use its public methods to parse the tables:\n\n```javascript\n// Parse all tables on the current page\nconst tables = parser.parseAllTables();\n\n// Parse a table based on a selector\nconst table = parser.parseTable('#my-table');\n```\n\nBoth methods return an array of JavaScript objects, where each object represents a row in the table. The keys of the object correspond to the header of each column.\n\n## License\n\n`HtmlTableParser` is licensed under the MIT license. See the [LICENSE](LICENSE) file for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvastblast%2Fhtml-table-parser-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvastblast%2Fhtml-table-parser-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvastblast%2Fhtml-table-parser-node/lists"}