{"id":17978375,"url":"https://github.com/ad-si/csvnorm","last_synced_at":"2025-08-03T05:30:44.798Z","repository":{"id":142369392,"uuid":"88086914","full_name":"ad-si/csvnorm","owner":"ad-si","description":"Command line tool to normalize CSV, TSV, and other *SV files","archived":false,"fork":false,"pushed_at":"2022-03-01T20:56:25.000Z","size":199,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-01T19:37:42.277Z","etag":null,"topics":["cli","csv","normalize","tsv","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ad-si.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-04-12T19:05:49.000Z","updated_at":"2024-06-17T17:58:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"6676303b-31be-46e8-b687-092fc75acefe","html_url":"https://github.com/ad-si/csvnorm","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fcsvnorm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fcsvnorm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fcsvnorm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ad-si%2Fcsvnorm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ad-si","download_url":"https://codeload.github.com/ad-si/csvnorm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228125507,"owners_count":17873319,"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":["cli","csv","normalize","tsv","typescript"],"created_at":"2024-10-29T17:33:24.388Z","updated_at":"2024-12-06T21:13:17.639Z","avatar_url":"https://github.com/ad-si.png","language":"TypeScript","readme":"# Csvnorm\n\nCommand line tool to normalize CSV and \\*SV files.\n\nSteps:\n\n- Convert to UTF-8 encoding\n- Replace separator with `,`\n- Reformat\n  - Date columns to ISO8601\n  - Number columns to `1456.25`\n  - Currency columns to `1539.16 $`\n\n\n## CLI Version\n\n### Installation\n\n```sh\nnpm install --global csvnorm\n```\n\n```sh\nyarn global add csvnorm\n```\n\n\n### Usage\n\n```txt\nUsage:\n  csvnorm [Options] INFILE [\u003e OUTFILE]\n  csvnorm [Options] \u003c INFILE [\u003e OUTFILE]\n\nOptions:\n  --date-format   Specify an additional prioritized input date format   [string]\n  --encoding      Overwrite detected input encoding                     [string]\n  --in-place      Normalize CSV file in place         [boolean] [default: false]\n  --iso-datetime  Output datetimes with format YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\n                                                      [boolean] [default: false]\n  --skip-start    Skip lines at the start of the input     [number] [default: 0]\n  --version       Show version number                                  [boolean]\n  --help          Show help                                            [boolean]\n\nExamples:\n  csvnorm input.csv \u003e normalized.csv        Normalize a CSV file\n  cat input.csv | csvnorm \u003e normalized.csv  Pipe and normalize a CSV file\n  csvnorm --date-format \"dd/mm/yyyy\" i.csv  Normalize a CSV file with an unusual\n                                            date format\n```\n\n\n## Node Module\n\n### Installation\n\n```sh\nnpm install --save csvnorm\n```\n\n```sh\nyarn add csvnorm\n```\n\n\n### Usage\n\nWith files:\n\n```js\nconst csvnorm = require('csvnorm')\n\ncsvnorm({\n  filePath: csvFilePath,\n  inPlace: true,\n})\n```\n\n\nWith streams:\n\n```js\nconst csvnorm = require('csvnorm')\n\ncsvnorm({\n  readableStream: process.stdin,\n  writableStream: process.stdout,\n})\n```\n\n**Warning:**\nNumbers from `1,000` to `999,999` with 3 decimal places\nare parsed as floats (`1.000` to `999.999`).\nOnly numbers larger than `1,000,000`\nor numbers with less or more than 3 decimal places\ncan be unambiguously parsed as integers (`1000000`).\n\n\n### TODO\n\n- [ ] Print debugging info in TTY mode\n- [ ] Improve encoding detection\n      (e.g. fork and update https://github.com/finnp/to-utf-8)\n- [ ] Implement `skipLinesEnd`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fad-si%2Fcsvnorm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fad-si%2Fcsvnorm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fad-si%2Fcsvnorm/lists"}