{"id":20983123,"url":"https://github.com/pozil/csv-visualizer","last_synced_at":"2025-05-14T16:31:59.795Z","repository":{"id":71932031,"uuid":"403713422","full_name":"pozil/csv-visualizer","owner":"pozil","description":"A visualizer that parses CSV data and renders it in a table in Postman or in a browser.","archived":false,"fork":false,"pushed_at":"2023-07-19T04:04:28.000Z","size":930,"stargazers_count":19,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T04:49:06.016Z","etag":null,"topics":["csv","postman","visualizer"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pozil.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":"2021-09-06T17:51:24.000Z","updated_at":"2024-04-07T00:35:34.000Z","dependencies_parsed_at":"2024-10-24T18:09:28.695Z","dependency_job_id":null,"html_url":"https://github.com/pozil/csv-visualizer","commit_stats":{"total_commits":10,"total_committers":4,"mean_commits":2.5,"dds":0.5,"last_synced_commit":"5999d9d939e56c0e67a27fd69bc7cb88d2d401c8"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pozil%2Fcsv-visualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pozil%2Fcsv-visualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pozil%2Fcsv-visualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pozil%2Fcsv-visualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pozil","download_url":"https://codeload.github.com/pozil/csv-visualizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254183055,"owners_count":22028410,"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":["csv","postman","visualizer"],"created_at":"2024-11-19T05:47:49.300Z","updated_at":"2025-05-14T16:31:59.174Z","avatar_url":"https://github.com/pozil.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/csv-visualizer)](https://www.npmjs.com/package/csv-visualizer)\n\n# Postman CSV Visualizer\n\nA visualizer that parses CSV data and renders it in a table in Postman or in a browser.\n\n1. [Example](#example)\n1. [Using the Visualizer in Postman](#using-the-visualizer-in-postman)\n1. [Reference](#reference)\n\n## Example\n\nThe following code...\n\n```html\n\u003cscript src=\"https://unpkg.com/csv-visualizer@1.0.0/dist/csv-vizualizer.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    const CSV = '\"h1\",\"h2\",\"h3\"\\n\"r1c1\",\"r1c2\",\"r1c3\"\\n\"r2c1\",\"r2c2\",\"r2c3\"';\n    CsvVisualizer.visualize(CSV);\n\u003c/script\u003e\n```\n\n...generates a table like this:\n\n![Standalone HTML table](./gfx/simple-table.png)\n\nComplete example available in [example.html](example.html).\n\n## Using the Visualizer in Postman\n\n1. Pick a request that returns CSV data\n1. Copy the following code in the **Tests** tab:\n\n    ```js\n    const template = `\u003cscript src=\"https://unpkg.com/csv-visualizer@latest/dist/csv-visualizer.min.js\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n    pm.getData((err, data) =\u003e {\n        CsvVisualizer.visualize(data.csvString);\n    });\n    \u003c/script\u003e`;\n    const csvString = pm.response.text();\n    pm.visualizer.set(template, { csvString });\n    ```\n\n1. Run the request and open the response's **Visualize** tab\n\n![Postman visualizer](./gfx/postman.png)\n\n## Reference\n\n```js\nCsvVisualizer.visualize(\n    csvString,\n    (rootElement = document.body),\n    (options = {})\n);\n```\n\n`csvString` - the CSV string that holds the table data\n\n`rootElement` - optional, the root DOM element to witch the content is appended. If not specified, `document.body` is used.\n\n`options` - optional, an object that contains the table and parser options:\n\n| Property        | Type      | Default | Description                                                                         |\n| --------------- | --------- | ------- | ----------------------------------------------------------------------------------- |\n| `showHeader`    | `boolean` | `true`  | Whether the table should have a header that indicates the number of rows.           |\n| `parserOptions` | `Object`  | `{}`    | CSV parser options. See [Papa Parse Config](https://www.papaparse.com/docs#config). |\n\n## Credits/Licenses\n\nThis project uses [Papa Parse](https://www.papaparse.com/) (MIT License) for CSV parsing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpozil%2Fcsv-visualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpozil%2Fcsv-visualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpozil%2Fcsv-visualizer/lists"}