{"version":"4.4.0","name":"csv-parse","description":"CSV parsing implementing the Node.js `stream.Transform` API","keywords":["csv","parse","parser","convert","tsv","stream"],"contributors":[{"name":"David Worms","email":"david@adaltas.com","url":"http://www.adaltas.com"},{"name":"Will White","url":"https://github.com/willwhite"},{"name":"Justin Latimer","url":"https://github.com/justinlatimer"},{"name":"jonseymour","url":"https://github.com/jonseymour"},{"name":"pascalopitz","url":"https://github.com/pascalopitz"},{"name":"Josh Pschorr","url":"https://github.com/jpschorr"},{"name":"Elad Ben-Israel","url":"https://github.com/eladb"},{"name":"Philippe Plantier","url":"https://github.com/phipla"},{"name":"Tim Oxley","url":"https://github.com/timoxley"},{"name":"Damon Oehlman","url":"https://github.com/DamonOehlman"},{"name":"Alexandru Topliceanu","url":"https://github.com/topliceanu"},{"name":"Visup","url":"https://github.com/visup"},{"name":"Edmund von der Burg","url":"https://github.com/evdb"},{"name":"Douglas Christopher Wilson","url":"https://github.com/dougwilson"},{"name":"Joe Eaves","url":"https://github.com/Joeasaurus"},{"name":"Mark Stosberg","url":"https://github.com/markstos"}],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/wdavidw/node-csv-parse.git"},"homepage":"https://csv.js.org/parse/","devDependencies":{"@babel/cli":"^7.4.3","@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3","@types/mocha":"^5.2.6","@types/node":"^11.13.0","@types/should":"^13.0.0","coffeescript":"^2.4.0","csv-generate":"^3.2.0","csv-spectrum":"^1.0.0","each":"^1.2.1","mocha":"^6.0.2","should":"^13.2.3","stream-transform":"^1.0.8","ts-node":"^8.0.3","typescript":"^3.4.2"},"optionalDependencies":{},"main":"./lib","scripts":{"preversion":"grep '## Trunk' CHANGELOG.md && npm test && cp lib/*.ts lib/es5 && git add lib/es5/*.ts","version":"version=`grep '^  \"version\": ' package.json | sed 's/.*\"\\([0-9\\.]*\\)\".*/\\1/'` && sed -i \"s/## Trunk/## Version $version/\" CHANGELOG.md && git add CHANGELOG.md","postversion":"git push && git push --tags && npm publish","patch":"npm version patch -m 'Bump to version %s'","minor":"npm version minor -m 'Bump to version %s'","major":"npm version major -m 'Bump to version %s'","pretest":"cd lib && babel *.js  -d es5 && cd ..","test":"mocha test/**/*.{coffee,ts}"},"types":"./lib/index.d.ts","gitHead":"034a93b5e69c2a48e32f827f2956b429a40c0a9c","bugs":{"url":"https://github.com/wdavidw/node-csv-parse/issues"},"dependencies":{},"_id":"csv-parse@4.4.0","_nodeVersion":"11.13.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-rvoRlZxu6Ap8jOkhoQQeI+5y/eTPqEIVk20bxZmo81k2ArUiNLv8LAERTEKarOQuC7BKXGyzSqAKWox115bg7A==","shasum":"b253e44119cdbd309287260447694cc17f10dc74","tarball":"http://registry-npm.ywwl.com/csv-parse/download/csv-parse-4.4.0.tgz","fileCount":36,"unpackedSize":120250,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcq7GqCRA9TVsSAnZWagAA1rIP/0rZn+pUUKouNuuL6/SS\ne7X+qNUzRCk6SV+2ZY/Q6N0cdEtW+YcsgfV7aIJD3XyH3L8eOBKhxB5ZnL5y\ncASPuihYtRrtOe64knoO6UoSeYfYXSh6ba6F+Q0tM5Vql5h/R0mXCGIRjDrD\nt8xg28ueuxODgUnJE4MgC7IZdxfabJQw9hOaEEnkj02CPcVQ7Ek/DOaM3BzV\nEbnqHdmdM+zCsbfZ8I46yDcX9VG4TMd+x5GpIaSLNVFs0Iilzg2flanRLSyt\ngpyU4xRcXNJdMu0IWeaPV6KljCpozWtvfOQXg3lfDMlF8rH3ls+YxscnTeps\nLlD4sc0rDu1IcLmfQ0Wo1hZpfwsc2tEHjwqRQ2jIPyJp3IMmenEGfPX5ZF1q\nfYYnmAqY59OMxh7FsVIdV+F7s2CPa/jCupWikYp6o9yQrkFyditRCrgTYIOA\nHvPoCbJoS/El6Hf3voRONX0uJ7RgDZA5jVA1cq95PpT+Tu1X/ShMm8mbgQax\ngMQ50Ngm1UIgf3ZEEmEoRy1EyaqLQpb/fiDKI4efDwA4tOaR8UN5v7eHqP9i\n78bBFpqBMypw++phOfar+pIOXcAk7sbyAC3MHG44twUMvGbzyIFAwM6fPwQ5\nzaJfQb/q7t327+Hsxdzwrgo6n5n80Wkh4aecfc2OlU7UnvJLKgy/3p3lYarP\nGkhV\r\n=fUMh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXGdXWqal8Hzxj07a1EdBiNRKDiDoLkk3OgP9bKy1oJAIhANXVA3qPhEtRbKeOQs6SMzv2ARuUqm5EOBLhHqt2DvHn"}],"size":28614,"noattachment":false,"key":"/csv-parse/-/csv-parse-4.4.0.tgz"},"maintainers":[{"name":"david","email":"david@adaltas.com"}],"_npmUser":{"name":"david","email":"david@adaltas.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/csv-parse_4.4.0_1554756009626_0.5575683417079527"},"_hasShrinkwrap":false,"readme":"\n# CSV parser 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-parse)](https://www.npmjs.com/package/csv-parse)\n[![NPM](https://img.shields.io/npm/v/csv-parse)](https://www.npmjs.com/package/csv-parse)\n \nThe [`csv-parse` package](https://csv.js.org/parse/) is a parser converting CSV text input into arrays or objects. It is part of the [CSV project](https://csv.js.org/).\n\nIt implements the Node.js [`stream.Transform` API](http://nodejs.org/api/stream.html#stream_class_stream_transform). It also provides a simple callback-based API for convenience. It is both extremely easy to use and powerful. It was first released in 2010 and is used against big data sets by a large community.\n\n## Documentation\n\n* [Project homepage](https://csv.js.org/parse/)\n* [API](https://csv.js.org/parse/api/)\n* [Options](https://csv.js.org/parse/options/)\n* [Info properties](https://csv.js.org/parse/info/)\n* [Common errors](https://csv.js.org/parse/errors/)\n* [Examples](https://csv.js.org/project/examples/)\n\n## Main features\n\n*   Flexible with lot of [options](https://csv.js.org/parse/options/)\n*   Multiple [distributions](https://csv.js.org/parse/distributions/): Node.js, Web, ECMAScript modules and CommonJS\n*   Follow the Node.js streaming API\n*   Simplicity with the optional callback API\n*   Support delimiters, quotes, escape characters and comments\n*   Line breaks discovery\n*   Support big datasets\n*   Complete test coverage and lot of samples for inspiration\n*   No external dependencies\n*   Work nicely with the [csv-generate](https://csv.js.org/generate/), [stream-transform](https://csv.js.org/transform/) and [csv-stringify](https://csv.js.org/stringify/) packages\n*   MIT License\n\n## Usage\n\nRun `npm install csv` to install the full CSV module or run `npm install csv-parse` if you are only interested by the CSV parser.\n\nUse the callback and sync APIs for simplicity or the stream based API for scalability.\n\n## Example\n\nThe [API](https://csv.js.org/parse/api/) is available in multiple flavors. This example illustrates the stream API.\n\n```js\nimport assert from 'assert';\nimport { parse } from 'csv-parse';\n\nconst records = [];\n// Initialize the parser\nconst parser = parse({\n  delimiter: ':'\n});\n// Use the readable stream api to consume records\nparser.on('readable', function(){\n  let record;\n  while ((record = parser.read()) !== null) {\n    records.push(record);\n  }\n});\n// Catch any error\nparser.on('error', function(err){\n  console.error(err.message);\n});\n// Test that the parsed records matched the expected records\nparser.on('end', function(){\n  assert.deepStrictEqual(\n    records,\n    [\n      [ 'root','x','0','0','root','/root','/bin/bash' ],\n      [ 'someone','x','1022','1022','','/home/someone','/bin/bash' ]\n    ]\n  );\n});\n// Write data to the stream\nparser.write(\"root:x:0:0:root:/root:/bin/bash\\n\");\nparser.write(\"someone:x:1022:1022::/home/someone:/bin/bash\\n\");\n// Close the readable stream\nparser.end();\n```\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","publish_time":1554756009814,"_cnpm_publish_time":1554756009814,"dist-tags":{"latest":"7.0.3"}}