{"id":17398435,"url":"https://github.com/vweevers/coerce-tabular","last_synced_at":"2025-03-29T20:15:41.455Z","repository":{"id":33016480,"uuid":"36650754","full_name":"vweevers/coerce-tabular","owner":"vweevers","description":"An object stream that coerces tabular data to numbers","archived":false,"fork":false,"pushed_at":"2016-08-12T09:48:10.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T21:39:05.341Z","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/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}},"created_at":"2015-06-01T09:26:37.000Z","updated_at":"2016-08-12T09:48:10.000Z","dependencies_parsed_at":"2022-08-07T19:30:13.958Z","dependency_job_id":null,"html_url":"https://github.com/vweevers/coerce-tabular","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fcoerce-tabular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fcoerce-tabular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fcoerce-tabular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vweevers%2Fcoerce-tabular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vweevers","download_url":"https://codeload.github.com/vweevers/coerce-tabular/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246237436,"owners_count":20745348,"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-10-16T14:56:24.552Z","updated_at":"2025-03-29T20:15:41.437Z","avatar_url":"https://github.com/vweevers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coerce-tabular\r\n\r\n**An object stream that coerces tabular data to numbers. Assumes that all incoming objects have the same set of keys and does not fill in missing values. Supports comma and dot notation (1,23 and 1.23).**\r\n\r\n[![npm status](http://img.shields.io/npm/v/coerce-tabular.svg?style=flat-square)](https://www.npmjs.org/package/coerce-tabular) [![Travis build status](https://img.shields.io/travis/vweevers/coerce-tabular.svg?style=flat-square\u0026label=travis)](http://travis-ci.org/vweevers/coerce-tabular) [![AppVeyor build status](https://img.shields.io/appveyor/ci/vweevers/coerce-tabular.svg?style=flat-square\u0026label=appveyor)](https://ci.appveyor.com/project/vweevers/coerce-tabular) [![Dependency status](https://img.shields.io/david/vweevers/coerce-tabular.svg?style=flat-square)](https://david-dm.org/vweevers/coerce-tabular)\r\n\r\n## example\r\n\r\n`npm i detect-tabular coerce-tabular jsonstream`\r\n\r\n```js\r\nvar detect = require('detect-tabular')\r\n  , coerce = require('coerce-tabular')\r\n  , fs     = require('fs')\r\n  , json   = require('jsonstream')\r\n\r\nfs.createReadStream('air_pollution_nl.xlsx')\r\n  .pipe( detect() )\r\n  .pipe( coerce() )\r\n  .pipe( json.stringify() )\r\n  .pipe( process.stdout )\r\n```\r\n\r\n## api\r\n\r\n### `coerce()`\r\n\r\nReturns a transform stream. Give it objects in the form of `{ name: \"Alice\", nr: \"1e-2\" }` and get back `{ name: \"Alice\", nr: 0.01 }`.\r\n\r\n## install\r\n\r\nWith [npm](https://npmjs.org) do:\r\n\r\n```\r\nnpm install coerce-tabular\r\n```\r\n\r\n## license\r\n\r\n[MIT](http://opensource.org/licenses/MIT) © [Vincent Weevers](http://vincentweevers.nl)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvweevers%2Fcoerce-tabular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvweevers%2Fcoerce-tabular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvweevers%2Fcoerce-tabular/lists"}