{"_id":"@asdsadw12312dwd2112xz/csv-to-json-cli","name":"@asdsadw12312dwd2112xz/csv-to-json-cli","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@asdsadw12312dwd2112xz/csv-to-json-cli","version":"1.0.0","description":"Convert CSV files to JSON and vice versa","type":"module","bin":{"csv2json":"dist/index.js"},"scripts":{"build":"tsup","prepublishOnly":"npm run build"},"keywords":["csv","json","convert","transform","data","cli"],"author":{"name":"okirmio"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/okirmio-create/csv-to-json-cli.git"},"dependencies":{"commander":"^13.1.0","chalk":"^5.4.1"},"devDependencies":{"tsup":"^8.4.0","typescript":"^5.7.3","@types/node":"^22.13.5"},"gitHead":"0c2b5241dcc48d0cf4b332b45e879863c00ef48a","_id":"@asdsadw12312dwd2112xz/csv-to-json-cli@1.0.0","bugs":{"url":"https://github.com/okirmio-create/csv-to-json-cli/issues"},"homepage":"https://github.com/okirmio-create/csv-to-json-cli#readme","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-MTUTokW+rNaNp94ULTsqj1ShNq/EYdZ9GzUBONgxplFWo2yqBzkUQ5GFt/9+3ybroUUtfGeLqj0xrNBmvMQi7Q==","shasum":"f9d323266756679bd7c64ce4c67d9509b9b9728c","tarball":"https://registry.npmjs.org/@asdsadw12312dwd2112xz/csv-to-json-cli/-/csv-to-json-cli-1.0.0.tgz","fileCount":6,"unpackedSize":18434,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFelfGev+nXoZNkYSz+NsLknHWzZwS0294A9wSFod3VwAiEA1gdGgJd8KP49IOM8avb4yuLJetMGUKX7tTr6DRMbvVg="}]},"_npmUser":{"name":"asdsadw12312dwd2112xz","email":"okirmio@gmail.com"},"directories":{},"maintainers":[{"name":"asdsadw12312dwd2112xz","email":"okirmio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/csv-to-json-cli_1.0.0_1775436204793_0.6460482344552771"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-06T00:43:24.691Z","1.0.0":"2026-04-06T00:43:25.049Z","modified":"2026-04-06T00:43:25.275Z"},"maintainers":[{"name":"asdsadw12312dwd2112xz","email":"okirmio@gmail.com"}],"description":"Convert CSV files to JSON and vice versa","homepage":"https://github.com/okirmio-create/csv-to-json-cli#readme","keywords":["csv","json","convert","transform","data","cli"],"repository":{"type":"git","url":"git+https://github.com/okirmio-create/csv-to-json-cli.git"},"author":{"name":"okirmio"},"bugs":{"url":"https://github.com/okirmio-create/csv-to-json-cli/issues"},"license":"MIT","readme":"# csv-to-json-cli\n\nConvert CSV files to JSON and vice versa. Zero-dependency CSV parsing — fully RFC 4180 compliant.\n\n## Install\n\n```bash\nnpm install -g csv-to-json-cli\n```\n\n## Usage\n\n### CSV → JSON\n\n```bash\ncsv2json csv2json data.csv\ncsv2json csv2json data.csv -o output.json --pretty\ncsv2json csv2json data.csv --delimiter \";\" --fields \"name,email\"\ncat data.csv | csv2json csv2json --pipe\n```\n\n### JSON → CSV\n\n```bash\ncsv2json json2csv data.json\ncsv2json json2csv data.json -o output.csv\ncsv2json json2csv data.json --flat --delimiter \"\\t\"\ncat data.json | csv2json json2csv --pipe\n```\n\n### Options\n\n| Option | Description |\n|---|---|\n| `-o, --output <file>` | Write to file instead of stdout |\n| `-d, --delimiter <char>` | Field delimiter (default: `,`) |\n| `--no-header` | CSV has no header row (fields named `field1`, `field2`, …) |\n| `--pretty` | Pretty-print JSON with indentation |\n| `--flat` | Flatten nested JSON objects for CSV output |\n| `--fields <list>` | Include only specified fields (comma-separated) |\n| `--pipe` | Read input from stdin |\n\n## Features\n\n- Manual CSV parser — handles quoted fields, commas inside quotes, newlines in fields, escaped quotes\n- Flatten nested JSON objects with dot notation\n- Pick specific fields to include in output\n- Stdin/stdout piping for shell pipelines\n- Row and field count summary on stderr\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-087ab6b5db2bcd46852cdc1b3d021458"}