{"id":22295484,"url":"https://github.com/mrodrig/json-2-csv-cli","last_synced_at":"2025-08-25T17:04:49.701Z","repository":{"id":36691174,"uuid":"229651368","full_name":"mrodrig/json-2-csv-cli","owner":"mrodrig","description":"NPM package providing CLI functionality for the json-2-csv NPM package","archived":false,"fork":false,"pushed_at":"2025-03-06T03:50:10.000Z","size":42,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-06T20:57:07.585Z","etag":null,"topics":["cli","command-line","csv","export","hacktoberfest","json"],"latest_commit_sha":null,"homepage":"","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/mrodrig.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,"zenodo":null}},"created_at":"2019-12-23T00:52:39.000Z","updated_at":"2025-03-06T03:50:14.000Z","dependencies_parsed_at":"2024-07-08T04:22:46.581Z","dependency_job_id":"8fc6636e-6c6c-4d87-b8a9-c5bba4f6f0e5","html_url":"https://github.com/mrodrig/json-2-csv-cli","commit_stats":{"total_commits":42,"total_committers":5,"mean_commits":8.4,"dds":"0.47619047619047616","last_synced_commit":"cfcb45c5f22917db3411829cfbe2e5b2a9a142b4"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/mrodrig/json-2-csv-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrodrig%2Fjson-2-csv-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrodrig%2Fjson-2-csv-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrodrig%2Fjson-2-csv-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrodrig%2Fjson-2-csv-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrodrig","download_url":"https://codeload.github.com/mrodrig/json-2-csv-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrodrig%2Fjson-2-csv-cli/sbom","scorecard":{"id":664564,"data":{"date":"2025-08-11","repo":{"name":"github.com/mrodrig/json-2-csv-cli","commit":"3f1b39456080b4e59c4e97530c3d9dd0c186df48"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/11 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T17:31:58.537Z","repository_id":36691174,"created_at":"2025-08-21T17:31:58.537Z","updated_at":"2025-08-21T17:31:58.537Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272100683,"owners_count":24873442,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","command-line","csv","export","hacktoberfest","json"],"created_at":"2024-12-03T17:42:19.440Z","updated_at":"2025-08-25T17:04:49.669Z","avatar_url":"https://github.com/mrodrig.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-2-csv-cli\n**Convert JSON to CSV _or_ CSV to JSON**\n\nThis module provides the command line interface functionality for the [json-2-csv](https://www.npmjs.org/package/json-2-csv) package.\n\n[![NPM version](https://img.shields.io/npm/v/@mrodrig/json-2-csv-cli.svg)](https://www.npmjs.org/package/@mrodrig/json-2-csv-cli)\n[![Downloads](https://img.shields.io/npm/dm/@mrodrig/json-2-csv-cli.svg)](https://www.npmjs.org/package/@mrodrig/json-2-csv-cli)\n\n## Installation\n\nCLI:\n```bash\n$ npm install -g @mrodrig/json-2-csv-cli\n```\n\n## Usage\n### json2csv\n```\nUsage: json2csv \u003cjsonFile\u003e [options]\n\nArguments:\n  jsonFile                         JSON file to convert\n\nOptions:\n  -V, --version                    output the version number\n  -o, --output [output]            Path of output file. If not provided, then stdout will be used\n  -a, --array-indexes-as-keys      Includes array indexes in the generated keys\n  -S, --check-schema               Check for schema differences\n  -f, --field \u003cdelimiter\u003e          Field delimiter\n  -w, --wrap \u003cdelimiter\u003e           Wrap delimiter\n  -e, --eol \u003cdelimiter\u003e            End of Line delimiter\n  -E, --empty-field-value \u003cvalue\u003e  Empty field value\n  -n, --expand-nested-objects      Expand nested objects to be deep converted to CSV\n  -k, --keys [keys]                Keys of documents to convert to CSV\n  -d, --escape-header-nested-dots  Escape header nested dots\n  -b, --excel-bom                  Excel Byte Order Mark character prepended to CSV\n  -x, --exclude-keys [keys]        Comma separated list of keys to exclude\n  -A, --expand-array-objects       Expand array objects\n  -W, --without-header             Withhold the prepended header\n  -p, --prevent-csv-injection      Prevent CSV Injection\n  -s, --sort-header                Sort the header fields\n  -F, --trim-fields                Trim field values\n  -H, --trim-header                Trim header fields\n  -U, --unwind-arrays              Unwind array values to their own CSV line\n  -I, --iso-date-format            Use ISO 8601 date format\n  -L, --locale-format              Use locale format for values\n  -B, --wrap-booleans              Wrap booleans\n  -h, --help                       display help for command\n```\n\n### csv2json\n```\nUsage: csv2json \u003ccsvFile\u003e [options]\n\nArguments:\n  csvFile                      CSV file to convert\n\nOptions:\n  -V, --version                output the version number\n  -o, --output [output]        Path of output file. If not provided, then stdout will be used\n  -t, --header-fields          Specify the fields names in place a header line in the CSV itself\n  -k, --keys [keys]            Keys of documents to convert to JSON\n  -f, --field \u003cdelimiter\u003e      Field delimiter\n  -w, --wrap \u003cdelimiter\u003e       Wrap delimiter\n  -e, --eol \u003cdelimiter\u003e        End of Line delimiter\n  -b, --excel-bom              Excel Byte Order Mark character prepended to CSV\n  -p, --prevent-csv-injection  Prevent CSV Injection\n  -F, --trim-fields            Trim field values\n  -H, --trim-header            Trim header fields\n  -h, --help                   display help for command\n```\n\n### Memory\nTo increase the allowed heap size, set `max_old_space_size` in `NODE_OPTIONS`.\n\nLinux/macOs:\n```bash\nexport NODE_OPTIONS=--max_old_space_size=4096\n```\n\nWindows:\n```cmd\nset NODE_OPTIONS=--max_old_space_size=4096\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrodrig%2Fjson-2-csv-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrodrig%2Fjson-2-csv-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrodrig%2Fjson-2-csv-cli/lists"}