{"name":"csv","version":"6.6.0","keywords":["node","csv","tsv","parser","parse","stringifier","stringify","transform","stream","generate","generation","backend","frontend"],"author":{"url":"https://www.adaltas.com","name":"David Worms","email":"david@adaltas.com"},"license":"MIT","_id":"csv@6.6.0","maintainers":[{"name":"david","email":"david@adaltas.com"}],"contributors":[{"url":"https://www.adaltas.com","name":"David Worms","email":"david@adaltas.com"}],"homepage":"https://csv.js.org","bugs":{"url":"https://github.com/adaltas/node-csv/issues"},"dist":{"shasum":"e5ba02b4c308fa083002b7c8826550de2da8ac93","tarball":"http://registry-npm.ywwl.com/csv/download/csv-6.6.0.tgz","fileCount":19,"integrity":"sha512-Jv9jGDzIJTSdcvYsS+yDANQM1xZ32VMKxh7EXJeesyViJGQ6kPsmq0s30soh3B19QVoobOWWIM92CnoahDA7+Q==","signatures":[{"sig":"MEUCIBZEmr9hI+RIkxZ7hzEAG41VP954934ssXNSrSVIiib4AiEArX+L1ozV5Eo9Oo/NPolGvW01hUd6b3dCq9C20sny7ZM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/csv@6.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2113881,"size":420818,"noattachment":false,"key":"/csv/-/csv-6.6.0.tgz"},"main":"./dist/cjs/index.cjs","type":"module","mocha":{"import":"tsx","timeout":40000,"reporter":"spec","recursive":true,"inline-diffs":true,"throw-deprecation":false},"types":"dist/esm/index.d.ts","engines":{"node":">= 0.1.90"},"exports":{".":{"import":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}},"./sync":{"import":{"types":"./lib/sync.d.ts","default":"./lib/sync.js"},"require":{"types":"./dist/cjs/sync.d.cts","default":"./dist/cjs/sync.cjs"}},"./browser/esm":{"types":"./lib/index.d.ts","default":"./dist/esm/index.js"},"./browser/esm/sync":{"types":"./lib/sync.d.ts","default":"./dist/esm/sync.js"}},"gitHead":"3d71f0b03008c23cb48adaadf17aacc37302b030","scripts":{"test":"npx tsc --noEmit && mocha 'test/**/*.{js,ts}'","build":"npm run build:rollup && npm run build:ts","lint:ts":"tsc --noEmit true","test:16":"mocha 'test/**/*.js'","build:ts":"cp lib/index.d.ts dist/cjs/index.d.cts && cp lib/sync.d.ts dist/cjs/sync.d.cts && cp lib/*.ts dist/esm","lint:fix":"eslint --fix","lint:check":"eslint","preversion":"npm run build && git add dist","test:legacy":"mocha --ignore test/samples.js 'test/**/*.{js,ts}'","build:rollup":"npx rollup -c","postbuild:ts":"find dist/cjs -name '*.d.cts' -exec sh -c \"sed -i \"s/\\.js'/\\.cjs'/g\" {} || sed -i '' \"s/\\.js'/\\.cjs'/g\" {}\" \\;"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:99617aef-2eff-4b0d-a3d1-0c6091e67fe7"}},"repository":{"url":"git+https://github.com/adaltas/node-csv.git","type":"git","directory":"packages/csv"},"_npmVersion":"lerna/9.0.7/node@v24.16.0+x64 (linux)","description":"A mature CSV toolset with simple api, full of options and tested against large datasets.","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","dependencies":{"csv-parse":"^7.0.0","csv-generate":"^4.6.0","csv-stringify":"^6.8.0","stream-transform":"^3.5.0"},"typesVersions":{"*":{".":["dist/esm/index.d.ts"],"sync":["dist/esm/sync.d.ts"],"browser/esm":["dist/esm/index.d.ts"],"browser/esm/sync":["dist/esm/sync.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^11.7.6","rollup":"^4.62.0","should":"~13.2.3","ts-node":"^10.9.2","prettier":"^3.8.4","typescript":"^6.0.3","@types/node":"^25.9.3","@types/mocha":"^10.0.10","rollup-plugin-node-globals":"^1.4.0","@rollup/plugin-node-resolve":"^16.0.3","rollup-plugin-node-builtins":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/csv_6.6.0_1781468989839_0.1100931899467632","host":"s3://npm-registry-packages-npm-production"},"readme":"# CSV for Node.js and the web\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/adaltas/node-csv/nodejs.yml?branch=master)](https://github.com/adaltas/node-csv/actions)\n[![NPM](https://img.shields.io/npm/dm/csv)](https://www.npmjs.com/package/csv) [![NPM](https://img.shields.io/npm/v/csv)](https://www.npmjs.com/package/csv)\n\nThe `csv` project provides CSV generation, parsing, transformation and serialization for Node.js.\n\nIt has been tested and used by a large community over the years and should be considered reliable. It provides every option you would expect from an advanced CSV parser and stringifier.\n\nThis package exposes 4 packages:\n\n- [`csv-generate`](https://csv.js.org/generate/)\n  ([GitHub](https://github.com/adaltas/node-csv/tree/master/packages/csv-generate)),\n  a flexible generator of CSV string and Javascript objects.\n- [`csv-parse`](https://csv.js.org/parse/)\n  ([GitHub](https://github.com/adaltas/node-csv/tree/master/packages/csv-parse)),\n  a parser converting CSV text into arrays or objects.\n- [`csv-stringify`](https://csv.js.org/stringify/)\n  ([GitHub](https://github.com/adaltas/node-csv/tree/master/packages/csv-stringify)),\n  a stringifier converting records into a CSV text.\n- [`stream-transform`](https://csv.js.org/transform/)\n  ([GitHub](https://github.com/adaltas/node-csv/tree/master/packages/stream-transform)),\n  a transformation framework.\n\n## Documentation\n\nThe full documentation for the current version is available [here](https://csv.js.org).\n\n## Usage\n\nInstallation command is `npm install csv`.\n\nEach package is fully compatible with the Node.js stream 2 and 3 specifications. Also, a simple callback-based API is always provided for convenience.\n\n## Synchronous sample\n\n```js\n// Import the package\nimport * as csv from \"csv/sync\";\n\n// Run the pipeline\nimport { generate, parse, transform, stringify } from \"csv/sync\";\n\n// Run the pipeline\nconst input = generate({ seed: 1, columns: 2, length: 2 });\nconst rawRecords = parse(input);\nconst refinedRecords = transform(rawRecords, (data) =>\n  data.map((value) => value.toUpperCase()),\n);\nconst output = stringify(refinedRecords);\n\n// Print the final result\nconsole.log(output);\n//> OMH,ONKCHHJMJADOA\n//> D,GEACHIN\n```\n\n## Streaming sample\n\nThis example uses the Stream API to create a processing pipeline.\n\n```js\n// Import the package\nimport * as csv from \"csv\";\n\n// Run the pipeline\ncsv\n  // Generate 20 records\n  .generate({\n    delimiter: \"|\",\n    length: 20,\n  })\n  // Transform CSV data into records\n  .pipe(\n    csv.parse({\n      delimiter: \"|\",\n    }),\n  )\n  // Transform each value into uppercase\n  .pipe(\n    csv.transform((record) => {\n      return record.map((value) => {\n        return value.toUpperCase();\n      });\n    }),\n  )\n  // Convert objects into a stream\n  .pipe(\n    csv.stringify({\n      quoted: true,\n    }),\n  )\n  // Print the CSV stream to stdout\n  .pipe(process.stdout);\n```\n\n## Development\n\nThis parent project doesn't have tests itself but instead delegates the tests to its child projects.\n\nRead the documentation of the child projects for additional information.\n\n## Contributors\n\nThe project is sponsored by [Adaltas](https://www.adaltas.com), an Big Data consulting firm based in Paris, France.\n\n- David Worms: <https://github.com/wdavidw>\n\n## Related projects\n\n- Pavel Kolesnikov \"ya-csv\": <http://github.com/koles/ya-csv>\n- Chris Williams \"node-csv\": <http://github.com/voodootikigod/node-csv>\n- Mat Holt \"PapaParse\": <https://github.com/mholt/PapaParse>\n","publish_time":1781468990018,"_cnpm_publish_time":1781468990018,"dist-tags":{"latest":"6.6.4"}}