{"id":13610756,"url":"https://github.com/neekey/table-parser","last_synced_at":"2026-02-14T02:54:46.760Z","repository":{"id":6573323,"uuid":"7815317","full_name":"neekey/table-parser","owner":"neekey","description":"A parser to parse table style output from shell","archived":false,"fork":false,"pushed_at":"2024-03-19T16:24:48.000Z","size":133,"stargazers_count":24,"open_issues_count":10,"forks_count":13,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-02T04:47:08.152Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neekey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2013-01-25T07:00:18.000Z","updated_at":"2024-08-14T13:07:28.000Z","dependencies_parsed_at":"2024-06-18T14:10:59.526Z","dependency_job_id":null,"html_url":"https://github.com/neekey/table-parser","commit_stats":{"total_commits":26,"total_committers":5,"mean_commits":5.2,"dds":"0.34615384615384615","last_synced_commit":"826e1142855bde21ee8d70df0c283da9b4a25459"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/neekey/table-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neekey%2Ftable-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neekey%2Ftable-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neekey%2Ftable-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neekey%2Ftable-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neekey","download_url":"https://codeload.github.com/neekey/table-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neekey%2Ftable-parser/sbom","scorecard":{"id":99669,"data":{"date":"2022-08-15","repo":{"name":"github.com/neekey/table-parser","commit":"826e1142855bde21ee8d70df0c283da9b4a25459"},"scorecard":{"version":"v4.5.0-26-g10b6052","commit":"10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93"},"score":4.8,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) out of 29 and 0 issue activity out of 9 found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Prow code reviews found for 1 commits out of the last 29 -- score normalized to 0","details":["Warn: no reviews found for commit: 679b57156c59975a7c81ae69a612adb33fd04252","Warn: no reviews found for commit: bb7428d4c0e7d424ad77574f5c2f68ece0da8e4f","Warn: no reviews found for commit: e6df2e1ab6325c1f50162183f04107932705970b","Warn: no reviews found for commit: 8cd45f07fb19f3b9d2297d2f9ebde27beafd4617","Warn: no reviews found for commit: 7864ad8e57a2099e21d7bbc2be4ed03b4f26d694","Warn: no reviews found for commit: 4c3d3edc40fa3d63406b8d6a037228e941bfad9d","Warn: no reviews found for commit: fc0a6f7d9f6538bd91d6da7ab3b5e59c627481d5","Warn: no reviews found for commit: 16939597f251ff8244b98b0675689a7e188aff2e","Warn: no reviews found for commit: b1a3bc47b3ed1c018e31b1fe05d350e07044e355","Warn: no reviews found for commit: a4cd6ebf1c683555408621083b940b5f40601079","Warn: no reviews found for commit: e7ee9a97273ac89467f3349fead1c1a4f107a452","Warn: no reviews found for commit: 8d2233ddc14d67909ba4feac1010900b631cb471","Warn: no reviews found for commit: fc9f80cfd14f7d1ea41d4c09747d6a6e807a7d0d","Warn: no reviews found for commit: 520dfd73414653bd91ad6918ad63b7083a1f640e","Warn: no reviews found for commit: 3b51ccc99549c2ceb319af8b7e8c6c14f3ff0553","Warn: no reviews found for commit: 875e1ac4ea2f2db9cfaede234da8f1038143b16e","Warn: no reviews found for commit: 64d225b27d8b44c0d4b0b80d93abf2214a5ef0af","Warn: no reviews found for commit: f5c19d4d4723f25d8ae28f0980defa9f5a533db6","Warn: no reviews found for commit: 98b870313040589ece66fbb5fb2aad5160d1dac5","Warn: no reviews found for commit: ea2f1d2835f8aaf617b63a5f3fbf686c0dd8aaa8","Warn: no reviews found for commit: 74c0864482f24dd45743c835682e31610fac2030","Warn: no reviews found for commit: 1b33e3fad8e4a16bfe7d9449267b76e5404afe11","Warn: no reviews found for commit: 750ea097f95c2ee13e5ca2622702bb1e6ea1fcd2","Warn: no reviews found for commit: 59cf019c5fe2879e9e749afa740ba60d2af1fbd2","Warn: no reviews found for commit: 5e757073da95d0368aaac245a6f48a6b116fa405","Warn: no reviews found for commit: dc5734177895669b0d1080f555e5867a9e259d04","Warn: no reviews found for commit: 4c96ba0d97ad11cde7eaef9a3473f46ce592f24c","Warn: no reviews found for commit: f2f91ebb3f1dbf3e766ad6cdf58bf5b9e6a077f2"],"documentation":{"short":"Determines if the project requires code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no badge detected","details":null,"documentation":{"short":"Determines if the project has a CII Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"no vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":["Warn: no GitHub releases found"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#branch-protection"}},{"name":"Packaging","score":-1,"reason":"no published package detected","details":["Warn: no GitHub publishing workflow detected"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":10,"reason":"tokens are read-only in GitHub workflows","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info: GitHub-owned GitHubActions are pinned","Info: Third-party GitHubActions are pinned","Info: Dockerfile dependencies are pinned","Info: no insecure (not pinned by hash) dependency downloads found in Dockerfiles","Info: no insecure (not pinned by hash) dependency downloads found in shell scripts"],"documentation":{"short":"Determines if the project has declared and pinned its dependencies.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: : LICENSE.txt:1"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#license"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":null,"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#security-policy"}},{"name":"Dependency-Update-Tool","score":0,"reason":"no update tool detected","details":["Warn: dependabot config file not detected in source location.\n\t\t\tWe recommend setting this configuration in code so it can be easily verified by others.","Warn: renovatebot config file not detected in source location.\n\t\t\tWe recommend setting this configuration in code so it can be easily verified by others."],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#dependency-update-tool"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":null,"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/10b6052acfb4f0b8136bc4876cb6f5b6f26bfe93/docs/checks.md#fuzzing"}}]},"last_synced_at":"2025-08-15T09:52:41.925Z","repository_id":6573323,"created_at":"2025-08-15T09:52:41.925Z","updated_at":"2025-08-15T09:52:41.925Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29432910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T02:20:56.896Z","status":"ssl_error","status_checked_at":"2026-02-14T02:11:29.478Z","response_time":53,"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":[],"created_at":"2024-08-01T19:01:47.685Z","updated_at":"2026-02-14T02:54:46.726Z","avatar_url":"https://github.com/neekey.png","language":"JavaScript","readme":"TableParser [![Build Status](https://travis-ci.org/neekey/table-parser.svg)](https://travis-ci.org/neekey/table-parser)\n================\n\nA parser to parse table style output from shell\n\n## Install\n\n```\nnpm install table-parser\n```\n\n## Usage\n\nWe have some kind of log below as `test/ps.log`:\n\n```bash\n  PID TTY           TIME CMD\n49692 ttys000    0:00.06 login -pfl neekey /bin/bash -c exec -la bash /bin/bash\n49693 ttys000    0:00.06 -bash\n54195 ttys000    0:00.09 node run\n\n...\n\n56266 ttys005    0:00.06 login -pfl neekey /bin/bash -c exec -la bash /bin/bash\n56269 ttys005    0:00.04 -bash\n56463 ttys005    0:00.09 node test.js\n56464 ttys005    0:00.01 ps -a\n```\n\nUse table-parser to parse it into object:\n\n```\nvar FS = require( 'fs' );\nvar Parser = require('table-parser');\n\nvar linux_ps = './ps.log';\n\ndata = FS.readFileSync( linux_ps ).toString();\nvar parsedData = Parser.parse( data );\n\nconsole.log( parsedData );\n\n```\n\nWhich will output:\n\n```bash\n[ { PID: [ '49692' ],\n    TTY: [ 'ttys000' ],\n    TIME: [ '0:00.06' ],\n    CMD:\n     [ 'login',\n       '-pfl',\n       'neekey',\n       '/bin/bash',\n       '-c',\n       'exec',\n       '-la',\n       'bash',\n       '/bin/bash' ] },\n  ...\n\n  { PID: [ '56464' ],\n    TTY: [ 'ttys005' ],\n    TIME: [ '0:00.01' ],\n    CMD: [ 'ps', '-a' ] } ]\n```\n\n## Double quotation marks\n\nNormally, all the values will be transformed into array using `split( /\\s+/ )`, but string wrapped with `\"` will be treated as a continuous string. \n\nFor example, the CommandLine below:\n\n```\n\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" --name=\"Jack Neekey\" --sex=male otherargs\n```\n\nwill be split into:\n\n- `C:\\Program Files\\Internet Explorer\\iexplore.exe` ( `\"` will be removed, if `\"` is at the beginning )\n- `--name=\"Jack Neekey\"`    ( `\"` is reserved )\n- `--sex=male`\n- `otherargs`\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneekey%2Ftable-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneekey%2Ftable-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneekey%2Ftable-parser/lists"}