{"_id":"@an-vila/fast-c2j","name":"@an-vila/fast-c2j","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@an-vila/fast-c2j","version":"1.0.0","description":"A fast, dependency-free CLI tool to convert CSV files to JSON.","main":"./dist/index.js","scripts":{"build":"tsc","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["csv","json","cli","converter"],"type":"module","bin":{"c2j":"dist/index.js"},"devDependencies":{"@types/node":"^26.1.2","ts-node":"^10.9.2","typescript":"^7.0.2"},"gitHead":"b6fe40ce811162722eff9cd3f15734d9d586fbc8","types":"./dist/index.d.ts","_id":"@an-vila/fast-c2j@1.0.0","_nodeVersion":"26.4.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-5B9+GeLTUoVG9pMeV57zk0/Emg81U8ZCtPG8HgB0rH0QlLNB3lKLPxNcb63txqLX3MthuJieihWlsvlYPJoOUA==","shasum":"03c640698fef02677573e861bc2c587e9601acd6","tarball":"https://registry.npmjs.org/@an-vila/fast-c2j/-/fast-c2j-1.0.0.tgz","fileCount":14,"unpackedSize":15974,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCJJhPt2rRm0XR/i9DWzI5cOozHiDIs+Hj7WOoSHN4XFwIgdhig1K3xKkOFFovflbW4wh7YKG50PbXgMhcuOEnh7GQ="}]},"_npmUser":{"name":"an-vila","email":"andervlrn@gmail.com"},"directories":{},"maintainers":[{"name":"an-vila","email":"andervlrn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fast-c2j_1.0.0_1786054091142_0.1636123256558819"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-06T22:08:10.959Z","1.0.0":"2026-08-06T22:08:11.337Z","modified":"2026-08-06T22:08:11.556Z"},"maintainers":[{"name":"an-vila","email":"andervlrn@gmail.com"}],"description":"A fast, dependency-free CLI tool to convert CSV files to JSON.","keywords":["csv","json","cli","converter"],"readme":"# Fast-c2j\n\nA fast, dependency-free CLI tool to convert CSV files to JSON.\n\nBuilt with Node.js streams to keep memory consumption extremely low, allowing it to process large datasets efficiently without loading the entire file into memory.\n\nIt's built entirely with native modules, automatically cleans Byte Order Marks from files exported by Excel and correctly parses CSV fields containing commas and quotes.\n\n## Background: From C to TypeScript\n\nThis project was originally written in C as an exercise in low-level memory management, manual string parsing, and file I/O operations. \n\nI decided to port the engine to TypeScript and Node.js to explore how high-level runtimes handle similar file-processing challenges. By leveraging Node.js Streams, this modern iteration maintains the memory efficiency of the original C implementation (processing files line-by-line without loading them entirely into RAM) while benefiting from TypeScript's type safety and the cross-platform CLI capabilities of the npm ecosystem.\n\n## Installation\n\n### Option 1: Global Installation\n\nInstall the package globally to make the `c2j` command available anywhere on your system.\n\n**Using npm:**\n```bash\nnpm install -g @an-vila/fast-c2j\n```\n\n**Using pnpm:**\n```bash\npnpm add -g @an-vila/fast-c2j\n```\n**Using Bun:**\n```bash\nbun add -g @an-vila/fast-c2j\n```\n\n**Using Yarn:**\n```bash\nyarn global add @an-vila/fast-c2j\n```\n\n### Option 2: Manual build\nIf you prefer to build from source:\n\n```bash\ngit clone [https://github.com/an-vila/fast-c2j.git](https://github.com/an-vila/fast-c2j.git)\ncd fast-c2j\nnpm install\nnpm run build\nnpm install -g .\n```\n\n\n## Usage\n\n```bash\nc2j <input_file.csv> [output_file.json]\n```\n\n## Examples\n\nGenerate an output.json in the current directory:\n\n```bash\nc2j data.csv\n```\n\nSpecify a custom output file:\n\n```bash\nc2j data.csv custom_output.json\n```\n\nUse absolute paths:\n\n```bash\nc2j /absolute/path/data.csv /path/to/output.json\n```\n\n## License\n[MIT](LICENSE)","readmeFilename":"README.md","_rev":"1-625db7a39fadb29e3959fe2a9d3c296c"}