{"name":"csv","version":"6.3.0","description":"A mature CSV toolset with simple api, full of options and tested against large datasets.","keywords":["node","csv","tsv","parser","parse","stringifier","stringify","transform","stream","generate","generation"],"bugs":{"url":"https://github.com/adaltas/node-csv/issues"},"author":{"name":"David Worms","email":"david@adaltas.com","url":"https://www.adaltas.com"},"contributors":[{"name":"David Worms","email":"david@adaltas.com","url":"https://www.adaltas.com"}],"dependencies":{"csv-generate":"^4.2.6","csv-parse":"^5.3.10","csv-stringify":"^6.4.0","stream-transform":"^3.2.6"},"devDependencies":{"@rollup/plugin-eslint":"^9.0.3","@rollup/plugin-node-resolve":"^15.0.1","@types/mocha":"^10.0.1","@types/node":"^18.15.3","@types/should":"^13.0.0","coffeescript":"~2.7.0","each":"^2.3.0","eslint":"^8.36.0","mocha":"~10.2.0","rollup":"^3.19.1","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-globals":"^1.4.0","should":"~13.2.3","ts-node":"^10.9.1","typescript":"^5.0.2"},"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"}},"homepage":"https://csv.js.org","license":"MIT","main":"./dist/cjs/index.cjs","mocha":{"inline-diffs":true,"loader":"./test/loaders/all.js","recursive":true,"reporter":"spec","require":["should"],"throw-deprecation":true,"timeout":40000},"repository":{"type":"git","url":"git+https://github.com/adaltas/node-csv.git","directory":"packages/csv"},"scripts":{"build":"npm run build:rollup && npm run build:ts","build:rollup":"npx rollup -c","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":"npm run lint:lib && npm run lint:samples && npm run lint:test","lint:lib":"eslint --fix lib/*.js","lint:samples":"eslint --fix samples/*.js","lint:test":"coffeelint --fix test/*.coffee","preversion":"npm run build && git add dist","pretest":"npm run build","test":"mocha 'test/**/*.{coffee,ts}'","test:legacy":"mocha --loader=./test/loaders/legacy/all.js 'test/**/*.{coffee,ts}'"},"type":"module","types":"dist/esm/index.d.ts","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"]}},"gitHead":"204b79602c94af49eb380859ebf67a55f229c2a1","_id":"csv@6.3.0","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.2/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-wXakaMNIz6qe/a15AXQ6JA9urN2lEx08J/3xpxv7Ke3GOrio300Ikbqzrlg1ML0fuEOULHhswvSxtN5h/72sHg==","shasum":"0c315db2bc62e97b1902519fdfcf2e8cbd037e7b","tarball":"http://registry-npm.ywwl.com/csv/download/csv-6.3.0.tgz","fileCount":20,"unpackedSize":1977654,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHWkPNl1/DEQZmz8wHHWYf89dEBbISuIL5S8tjpr4PKdAiBLy3FqdSAL3HyIB09AUf7lC7uyaEugt3/YG9HrYgvCiA=="}],"size":398802,"noattachment":false,"key":"/csv/-/csv-6.3.0.tgz"},"_npmUser":{"name":"david","email":"david@adaltas.com"},"directories":{},"maintainers":[{"name":"david","email":"david@adaltas.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/csv_6.3.0_1683616775512_0.7443629541405352"},"_hasShrinkwrap":false,"readme":"\n# 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\nfor Node.js.\n\nIt has been tested and used by a large community over the years and should be\nconsidered reliable. It provides every option you would expect from an advanced\nCSV 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.\nAlso, a simple callback-based API is always provided for convenience.\n\n## Sample\n\nThis example uses the Stream API to create a processing pipeline.\n\n```js\n// Import the package\nimport * as csv from '../lib/index.js';\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(csv.parse({\n    delimiter: '|'\n  }))\n// Transform each value into uppercase\n  .pipe(csv.transform((record) => {\n    return record.map((value) => {\n      return value.toUpperCase();\n    });\n  }))\n// Convert objects into a stream\n  .pipe(csv.stringify({\n    quoted: true\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\ntests 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\n[travis]: https://travis-ci.org/\n[travis-csv-generate]: http://travis-ci.org/adaltas/node-csv-generate\n[travis-csv-parse]: http://travis-ci.org/adaltas/node-csv-parse\n[travis-stream-transform]: http://travis-ci.org/adaltas/node-stream-transform\n[travis-csv-stringify]: http://travis-ci.org/adaltas/node-csv-stringify\n","publish_time":1683616775794,"_cnpm_publish_time":1683616775794,"dist-tags":{"latest":"6.6.4"}}