{"id":17398481,"url":"https://github.com/vweevers/detect-tabular","last_synced_at":"2026-03-05T18:38:28.557Z","repository":{"id":32985349,"uuid":"36612089","full_name":"vweevers/detect-tabular","owner":"vweevers","description":"A stream that detects tabular data (spreadsheets, dsv or json) and yields objects.","archived":false,"fork":false,"pushed_at":"2023-11-01T01:29:20.000Z","size":217,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-27T04:39:03.402Z","etag":null,"topics":["csv","dsv","json","ndjson","nodejs","ods","qpw","spreadsheets","stream","sylk","tabular-data","tsv","xls","xlsx"],"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/vweevers.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}},"created_at":"2015-05-31T16:36:14.000Z","updated_at":"2023-12-10T14:50:11.000Z","dependencies_parsed_at":"2023-12-16T00:07:29.630Z","dependency_job_id":"9f94eba8-0b92-4d8d-8d6d-2569d309fba7","html_url":"https://github.com/vweevers/detect-tabular","commit_stats":{"total_commits":29,"total_committers":3,"mean_commits":9.666666666666666,"dds":0.2068965517241379,"last_synced_commit":"7da635749e3a9617660d2d396dbd80a9fc980faf"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/vweevers/detect-tabular","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fdetect-tabular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fdetect-tabular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fdetect-tabular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fdetect-tabular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vweevers","download_url":"https://codeload.github.com/vweevers/detect-tabular/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fdetect-tabular/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30143187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T16:58:46.102Z","status":"ssl_error","status_checked_at":"2026-03-05T16:58:45.706Z","response_time":93,"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":["csv","dsv","json","ndjson","nodejs","ods","qpw","spreadsheets","stream","sylk","tabular-data","tsv","xls","xlsx"],"created_at":"2024-10-16T14:57:14.591Z","updated_at":"2026-03-05T18:38:28.527Z","avatar_url":"https://github.com/vweevers.png","language":"JavaScript","readme":"# detect-tabular\n\n\u003e **A stream that detects tabular data (spreadsheets, dsv or json) and yields objects.**  \n\u003e Supports 20+ different file formats. Spreadsheets and DSV must have a header.\n\n[![npm status](http://img.shields.io/npm/v/detect-tabular.svg)](https://www.npmjs.org/package/detect-tabular)\n[![node](https://img.shields.io/node/v/detect-tabular.svg)](https://www.npmjs.org/package/detect-tabular)\n[![Test](https://img.shields.io/github/workflow/status/vweevers/detect-tabular/Test?label=test)](https://github.com/vweevers/detect-tabular/actions/workflows/test.yml)\n[![Standard](https://img.shields.io/badge/standard-informational?logo=javascript\u0026logoColor=fff)](https://standardjs.com)\n\n## Example\n\n`npm i detect-tabular map-tabular-keys snake-case jsonstream`\n\n```js\nconst detect = require('detect-tabular')\nconst fs = require('fs')\nconst keys = require('map-tabular-keys')\nconst snake = require('snake-case').snakeCase\nconst json = require('jsonstream')\n\nfs.createReadStream('test/air_pollution_nl.xlsx')\n  .pipe(detect())\n  .pipe(keys(snake))\n  .pipe(json.stringify())\n  .pipe(process.stdout)\n```\n\n\u003e **_Tip_**   If you need normalization like this or number coercion, jump to [tabular-stream](https://www.npmjs.org/package/tabular-stream). If you want a CLI that does multi-format conversion, check out [tabular-cli](https://www.npmjs.org/package/tabular-cli).\n\n## API\n\n### `detect([options])`\n\nReturns a duplex stream - give it any tabular data, get back objects. Options are passed as-is to [`spreadsheet-stream`](https://github.com/vweevers/spreadsheet-stream) (if applicable).\n\n## Supported Input Formats\n\nText formats:\n\n- DSV (CSV, TSV or anything) through [`csv-parser`](https://npmjs.com/package/csv-parser)\n- JSON and NDJSON through [`JSONStream`](https://npmjs.com/package/JSONStream)\n\nBinary formats, through [`spreadsheet-stream`](https://github.com/vweevers/spreadsheet-stream):\n\n- Office Open XML (xlsx, Excel 2007 and above)\n- SpreadsheetML (xml, Excel 2003)\n- BIFF 5-8 (xls, Excel 95 and above)\n- Open Document Format/OASIS (ods)\n- SYLK\n- [And more](https://github.com/SheetJS/js-xlsx).\n\nNB. Because these binary formats are not streamable, `spreadsheet-stream` will buffer the whole thing in memory. As a safe-guard you can set the `maxSize` option (in bytes): `detect({ maxSize: 1024 * 1024 })`. See [`spreadsheet-stream`](https://github.com/vweevers/spreadsheet-stream) for details.\n\n## Install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install detect-tabular\n```\n\n## License\n\n[MIT](LICENSE).\n\nTest data © Statistics Netherlands, The Hague/Heerlen.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvweevers%2Fdetect-tabular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvweevers%2Fdetect-tabular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvweevers%2Fdetect-tabular/lists"}