{"name":"csv","version":"6.0.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.0.0","csv-parse":"^5.0.0","csv-stringify":"^6.0.0","stream-transform":"^3.0.0"},"devDependencies":{"@rollup/plugin-eslint":"^8.0.1","@rollup/plugin-node-resolve":"^13.0.6","@types/mocha":"^9.0.0","@types/node":"^16.11.7","@types/should":"^13.0.0","coffeescript":"~2.6.1","eslint":"^8.2.0","mocha":"~9.1.3","rollup":"^2.60.0","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-globals":"^1.4.0","should":"~13.2.3","ts-node":"^10.4.0","typescript":"^4.4.4"},"engines":{"node":">= 0.1.90"},"exports":{".":{"import":"./lib/index.js","require":"./dist/cjs/index.cjs"},"./sync":{"import":"./lib/sync.js","require":"./dist/cjs/sync.cjs"}},"homepage":"https://csv.js.org/","license":"MIT","main":"./dist/cjs/index.cjs","mocha":{"inline-diffs":true,"loader":"./test/loaders/all.mjs","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/*.ts dist/cjs && 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.mjs 'test/**/*.{coffee,ts}'"},"type":"module","types":"dist/esm/index.d.ts","typesVersions":{"*":{".":["dist/esm/index.d.ts"],"sync":["dist/esm/sync.d.ts"]}},"gitHead":"d95c35dc7fd698e8e3278f539c8f1d43fb77640b","_id":"csv@6.0.0","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (darwin)","dist":{"integrity":"sha512-KaE0J85sBgOG13nUi9OwHzdVwYRZu84WkFHloXNabuIWQ3oo6k9tYrUQyrJivjxX4dSbIkVhxqUQ5q7/KNIGpg==","shasum":"504e567806e965c1bffd5666278ae2028b9dbf39","tarball":"http://registry-npm.ywwl.com/csv/download/csv-6.0.0.tgz","fileCount":24,"unpackedSize":2097657,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhktzmCRA9TVsSAnZWagAAvlEQAKCQpeMMUgg9o0DiiZ5Q\nG/fOEpIiOiyO5Ddd9mJcCQg0K8RAchxWmlCKrS4/xwDOiVMt+OrlCbCtVQX/\nnhZd/frMcvMipTf1AcCfZcsWZ2oslQFdOGEdONOnDOtT07DnbH2ygAnCoHex\nKJB8zdOnqgvZztBZ3UP7WIrC8GVIPqyNm0WtpgilJHOHfJ9zoI4fITNnQBMn\n9CbxIDCKuKecEA8F3j53ca/A+41jBr8FElLY7m5KqVpSXwOJDXm2cV8aADIe\n+p994vhzbVythglbCfcqmdurF3xkAJct+O8sqJiblTAZJMEf5kN5ILdDvsZB\n94TiaE14r0RM+eqIN2W7Aud2Fm0lDJ3JVgbmrGjOVLVUZB5qCRLf8P0w0s6j\nIBW1pX4xRqBg5CBGWKUVwAD+PN7bLjKZrAnFVurr4MzQbn3HrMaBnhzsfirp\ne5jDDh7LAKtmdcr6ANVRsuCEDA+iSdpb2indkOS5oz48S3EPw+lrtAh0U0/q\nN/mOrvbY90BKQ0lzZJVsj1kqZen2zhKCjryfiVe6NTQdyVsMU8xqeX+V9A+F\ncMNTbko2SWOop0+gfTWi0xrtJUnTLHzDDmKvIS2rnMtCcr2axFgij6UKfP3i\nK0B1TU4PMnFRmp7gKS8pFjgm3qLj/FjE1CjPrwWs+gESYHsa5SvkW3fAK+T7\nbNG4\r\n=buXB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/Fayxv2B4U0V6TOc0Ufcvyv8JHhQsjWRwuq0wtnRDJwIgbCDbYqOfYVOMkknzJe2iHDFpyaK1bhUdK61GmPu9W78="}],"size":435304,"noattachment":false,"key":"/csv/-/csv-6.0.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.0.0_1637014757940_0.9402354268651429"},"_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":1637014758132,"_cnpm_publish_time":1637014758132,"dist-tags":{"latest":"6.6.4"}}