{"id":20648702,"url":"https://github.com/webpod/ingrid","last_synced_at":"2025-04-16T18:52:19.896Z","repository":{"id":229852869,"uuid":"775345761","full_name":"webpod/ingrid","owner":"webpod","description":"A shell-printed tables parser","archived":false,"fork":false,"pushed_at":"2024-03-29T11:05:09.000Z","size":121,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T07:34:13.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/webpod.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}},"created_at":"2024-03-21T08:08:27.000Z","updated_at":"2024-04-18T22:11:10.000Z","dependencies_parsed_at":"2024-03-29T12:24:31.131Z","dependency_job_id":null,"html_url":"https://github.com/webpod/ingrid","commit_stats":null,"previous_names":["webpod/ingrid"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpod%2Fingrid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpod%2Fingrid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpod%2Fingrid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpod%2Fingrid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webpod","download_url":"https://codeload.github.com/webpod/ingrid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249266653,"owners_count":21240792,"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-16T17:10:07.476Z","updated_at":"2025-04-16T18:52:19.877Z","avatar_url":"https://github.com/webpod.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @webpod/ingrid\n\u003e A shell-printed tables parser\n\n## Usage\nThere are so many tools for printing tables in the shell, but much less to parse them back.\n\n```ts\nimport { parse } from '@webpod/ingrid'\n\nconst table = `\nfoo bar baz\n1 2 3\n`\nconst result = parse(table.trim())\n// {foo: ['1'], bar: ['2'], baz: ['3']}\n```\n\nTo parse [wmic](https://en.wikipedia.org/wiki/Windows_Management_Instrumentation) grids, set the `format` option:\n\n```ts\nconst table = `\nfoo  bar  baz\n1\n\n  2  3\n\na\n\n  b  c\n\n  d  e\n`\n\nconst result = parse(table.trim(), {format: 'win'})\n/**\n [\n   { foo: ['1'], bar: ['2'], baz: ['3'] },\n   { foo: ['a'], bar: ['b'], baz: ['c'] },\n   { foo: ['a'], bar: ['d'], baz: ['e'] }\n ]\n */\n```\n\n## License\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpod%2Fingrid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebpod%2Fingrid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpod%2Fingrid/lists"}