{"id":41342811,"url":"https://github.com/robations/csvtools","last_synced_at":"2026-01-23T06:52:54.027Z","repository":{"id":6977655,"uuid":"55729393","full_name":"robations/csvtools","owner":"robations","description":"Tools for working with and analysing CSV files.","archived":false,"fork":false,"pushed_at":"2023-03-06T18:24:10.000Z","size":187,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T22:02:13.414Z","etag":null,"topics":["analysing-csv-files","cli-utilities","csv"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/robations.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-07T21:28:41.000Z","updated_at":"2021-11-19T16:48:20.000Z","dependencies_parsed_at":"2023-01-13T14:12:24.844Z","dependency_job_id":null,"html_url":"https://github.com/robations/csvtools","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/robations/csvtools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robations%2Fcsvtools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robations%2Fcsvtools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robations%2Fcsvtools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robations%2Fcsvtools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robations","download_url":"https://codeload.github.com/robations/csvtools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robations%2Fcsvtools/sbom","scorecard":{"id":779748,"data":{"date":"2025-08-18","repo":{"name":"github.com/robations/csvtools","commit":"4081fcac9c7e4cdb271893b17549767256855e3c"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":2.2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.js.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/robations/csvtools/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/robations/csvtools/node.js.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 1/24 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T04:37:39.563Z","repository_id":6977655,"created_at":"2025-08-23T04:37:39.564Z","updated_at":"2025-08-23T04:37:39.564Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"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":["analysing-csv-files","cli-utilities","csv"],"created_at":"2026-01-23T06:52:52.287Z","updated_at":"2026-01-23T06:52:54.016Z","avatar_url":"https://github.com/robations.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"CSV Tools\n=========\n\nSome tools for working with and analysing CSV files, including:\n\n- `csvproject`: project columns from a CSV file\n- `csvreport`: output a report for each column showing the type of data, number of empty values, and so on.\n\n## Usage\n\nHere’s an example input file:\n\n```csv\n# test.csv:\nmake,model,derivative\nford,capri,2.0L\nford,capri,3.0L\ncitroen,ds,2.3L\n```\n\n### `csvproject`\n\nProject as in [projection](https://en.wikipedia.org/wiki/Projection_(relational_algebra)). Select and output columns\nfrom the input file.\n\n```ShellSession\n$ csvproject test.csv -c make\nford\nford\ncitroen\n\n$ csvproject test.csv -c make -c derivative\nford,2.0L\nford,3.0L\ncitroen,2.3L\n\n$ # exclude columns instead of including:\n$ csvproject test.csv -e model\nford,2.0L\nford,3.0L\ncitroen,2.3L\n\n$ csvproject test.csv -c model --headers-out\nmodel\ncapri\ncapri\nds\n\n$ csvproject test.csv -c 1 --no-headers\nmodel\ncapri\ncapri\nds\n\n$ # here's an example using stdin:\n$ csvproject -c make \u003c test.csv\nford\nford\ncitroen\n\n$ # use a tab delimiter:\n$ csvproject -d$'\\t' \u003c test.tsv\nford,capri,2.0L\nford,capri,3.0L\ncitroen,ds,2.3L\n```\n\n\n### `csvreport`\n\nGenerate a report showing the range and type of values for each column selected\n\n```ShellSession\n$ csvreport test.csv -c make\nColumn: make\n┌────────────────────┬────────────────────────────────────────────────────────────┐\n│ Type               │ String                                                     │\n├────────────────────┼────────────────────────────────────────────────────────────┤\n│ count              │ 3                                                          │\n├────────────────────┼────────────────────────────────────────────────────────────┤\n│ min                │ citroen                                                    │\n├────────────────────┼────────────────────────────────────────────────────────────┤\n│ max                │ ford                                                       │\n├────────────────────┼────────────────────────────────────────────────────────────┤\n│ minLength          │ 4                                                          │\n├────────────────────┼────────────────────────────────────────────────────────────┤\n│ maxLength          │ 7                                                          │\n├────────────────────┼────────────────────────────────────────────────────────────┤\n│ Unique strings (2) │ ford, citroen                                              │\n├────────────────────┼────────────────────────────────────────────────────────────┤\n│ emptyCount         │ 0                                                          │\n└────────────────────┴────────────────────────────────────────────────────────────┘\n```\n\n\n## TODO\n\n- [x] Write usage docs.\n- [x] Support files without a header row.\n- [x] Support input from stdin.\n- [x] Write some tests.\n- [x] Add flag to exclude columns instead of including.\n- [ ] Improve test coverage.\n- [ ] Support passing options from a config file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobations%2Fcsvtools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobations%2Fcsvtools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobations%2Fcsvtools/lists"}