{"version":"4.16.3","name":"csv-parse","description":"CSV parsing implementing the Node.js `stream.Transform` API","keywords":["csv","parse","parser","convert","tsv","stream"],"coffeelintConfig":{"indentation":{"level":"error","value":2},"line_endings":{"level":"error","value":"unix"},"max_line_length":{"level":"ignore"}},"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"},{"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.14.8","@babel/core":"^7.15.0","@babel/preset-env":"^7.15.0","@types/mocha":"^9.0.0","@types/node":"^16.7.8","babelify":"^10.0.0","browserify":"^17.0.0","coffeescript":"^2.5.1","csv-generate":"^3.4.3","csv-spectrum":"^1.0.0","each":"^1.2.2","eslint":"^7.32.0","express":"^4.17.1","mocha":"^9.1.1","pad":"^3.2.0","should":"^13.2.3","stream-transform":"^2.1.3","ts-node":"^10.2.1","typescript":"^4.4.2"},"main":"./lib","mocha":{"throw-deprecation":true,"require":["should","coffeescript/register","ts-node/register"],"inline-diffs":true,"timeout":40000,"reporter":"spec","recursive":true},"scripts":{"build:babel":"cd lib && babel *.js -d es5 && cd ..","build:browserify":"browserify lib/index.js --transform babelify --standalone parse > lib/browser/index.js && browserify lib/sync.js --transform babelify --standalone parse > lib/browser/sync.js","build":"npm run build:babel && npm run build:browserify","preversion":"cp lib/*.ts lib/es5 && git add lib/es5/*.ts","pretest":"npm run build","lint":"eslint lib/*.js","test":"npm run lint && TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\":true}' mocha test/**/*.{coffee,ts}"},"types":"./lib/index.d.ts","gitHead":"0fd5209b6862655c384cda052abf38019b959e70","bugs":{"url":"https://github.com/wdavidw/node-csv-parse/issues"},"_id":"csv-parse@4.16.3","_nodeVersion":"14.11.0","_npmVersion":"lerna/4.0.0/node@v14.11.0+x64 (darwin)","dist":{"integrity":"sha512-cO1I/zmz4w2dcKHVvpCr7JVRu8/FymG5OEpmvsZYlccYolPBLoVGKUHgNoc4ZGkFeFlWGEDmMyBM+TTqRdW/wg==","shasum":"7ca624d517212ebc520a36873c3478fa66efbaf7","tarball":"http://registry-npm.ywwl.com/csv-parse/download/csv-parse-4.16.3.tgz","fileCount":15,"unpackedSize":667911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMdv5CRA9TVsSAnZWagAA0gIP/jNc1LBBCCu7ewyC0XBQ\nBKzt347fCeZ11Rmz3NnPHEbe4nTHsGbmixE1dMYxsPyA6vguUWxyL79OLKkg\nm9lviNbkITUn+YIBBlSFloc/tS1sff/Z8230BFPK6Nwk496e3O2O+nNEzfRe\nuv+pVlXnX3MXIL+S2hEcos4oW4TOzV85c5QLrLH/5n6dcwNtTdj4hb9/y7l8\n9I/C2egoOx7rZRq/RtVPy0XKhxnUIp7o00gAtKDE0a/6nFAQV31SePgIYlKk\ngJCWGSQSsuom94Io4na2KH9pl1OYUkfFfprZ8tblQmrPP2bvrtgVHArfU4d5\n/fYudK8WFqvknXDKkSdVQECJ/jHt4BJftBWyGIb5qAOaViSnpYyXfIsU68bR\n3CprUcLhleoHfDxhKKlHRThDyk6gydtkLSTCCllMisJOTcwGah+MdA7kCACJ\ncWULg8JeIz4ubwJiCEM5bs2yHLQwmfNLDDqU/ADWDo4pfMAqW07I+Tguug8U\nwv2FYDFjgk27AMNhYtsB4F1fwsNXKZNM+Mc2+VvQtbDqhe99ZgWc3Uf9HmJC\nOvNAue90sNPu9A81qaT8iIdGQZHwSSnh326Wn4gnprscA2tDx7zrwzZ1p3ej\nN24p44MO/10g+fyKY0qU0E7W6/DT2+n17tlwjRDbhrTQ54X7XO7ghBMxn4hN\niFDt\r\n=Yu0o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAyAOPr4NjpQeWCjCUmppxkeXpWcV20v6BNlkA/2+XRcAiEAjHvBkMUj8WBxQIPIF/Iq40qcjQJoHgzgXhksaD/v5a0="}],"size":152315,"noattachment":false,"key":"/csv-parse/-/csv-parse-4.16.3.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-parse_4.16.3_1630657528966_0.0653026681210831"},"_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":1630657529171,"_cnpm_publish_time":1630657529171,"dist-tags":{"latest":"7.0.3"}}