{"version":"3.2.0","name":"csv-generate","description":"CSV and object generation implementing the Node.js `stream.Readable` API","keywords":["stream","generate","csv","object"],"license":"BSD-3-Clause","repository":{"type":"git","url":"git+ssh://git@github.com/adaltas/node-csv-generate.git"},"homepage":"https://csv.js.org/generate/","bugs":{"url":"https://github.com/adaltas/node-csv-generate/issues"},"author":{"name":"David Worms","email":"david@adaltas.com","url":"http://www.adaltas.com"},"devDependencies":{"@babel/cli":"^7.1.0","@babel/core":"^7.1.0","@babel/preset-env":"^7.1.0","@types/mocha":"^5.2.5","@types/node":"^10.12.10","@types/should":"^13.0.0","coffeescript":"~2.3.2","mocha":"~5.2.0","should":"~13.2.3","ts-node":"^7.0.1","typescript":"^3.1.6"},"main":"./lib","scripts":{"preversion":"rm -rf lib/*.js && npm test && grep '## Trunk' CHANGELOG.md","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'","coffee":"coffee -b -o lib src && cd lib && babel *.js  -d es5 && cd ..","pretest":"coffee -b -o lib src && cd lib && babel *.js  -d es5 && cd ..","test":"mocha test/**/*.coffee"},"types":"./lib/index.d.ts","gitHead":"d90fc95502da22ad35da611f864fb4ec106558c3","_id":"csv-generate@3.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"david","email":"david@adaltas.com"},"dist":{"integrity":"sha512-ZdS2KrgoLxm1guL9XhuaZX223Tiorldvl9QC0M/gihcrJavNDokAp/rX3CyyRHpK+rImxEE3L47cHe7npQMkkg==","shasum":"17c0defbad71bfe63182cd3c41c972138ce0b300","tarball":"http://registry-npm.ywwl.com/csv-generate/download/csv-generate-3.2.0.tgz","fileCount":16,"unpackedSize":29509,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb/l2uCRA9TVsSAnZWagAAxXUQAIJ1QhreXkL8xBgKenYz\nqQE3fHdJExFBYmKtmjEGNKeoBQs1hd91xhCZVeq8nbAxowbPm7ZGV1qjOfWy\nf52GFKE7DJErcWwUgTd6LxGtsu7wYxcxg7FiOCQTQb3/TV8ak56ZVZ6w2qp4\nc1pMExf+g0NFYCG/uG2e2XX/AYHzVALfmfA+nbVV2/b+AzKusXdzKW40oVVH\noPM1oZityY1L8vu3OIhCbM1kT1D5Gaf9cBgxatC5mcgoxjOgJiKdTrbcGOky\nQ7bc4s/ChaoeUWiWGI8CACntl6JcHZV2UeCh9GCiBURcgxzFzVjjXHyEe+zU\njQy06ZBWRW1pS4E6VSW6T7AnDiFdtuL9b3HL2AC6iNBltmMZnH8zm/kNRKhu\nGyv6q6jCw4N/9PAGMiR4UU3WGNZujPaGV7QNGl9ulv7R/OWyEEb+9QTrg4RG\nZqI4eZacFfwzfsJ51rqsVY/gfe4MxHW9jK1+DatD+BJ3Iione28+JVOFsDu/\no1z8XYhiqqXy89Pnq1MiTJrXqUYQ2LoRgkKse83FDEW7QBML6ejtCvAbCpGn\nq2ahsAwN+Jd40zfl9bFX8lm2TdKWjLQnxNT+RRoWE34d15ztp24HKkxcbcru\nZ6YD8tDxf8nc2DejpeRVZ2wCsRFLfvVuZwR+BvciBXIj0dVXf80nK9ELTBuD\nYWvn\r\n=KeJh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBDE7FI1xpmzoFogXhN+OCrQm7mumtlOS487RjN9DmsFAiEAwsXX27/oOewj1JQMHbuipB7G3jy/rW2P2ywPulVw99M="}],"size":7856,"noattachment":false,"key":"/csv-generate/-/csv-generate-3.2.0.tgz"},"maintainers":[{"name":"david","email":"david@adaltas.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/csv-generate_3.2.0_1543396782214_0.17054630742494425"},"_hasShrinkwrap":false,"readme":"\n# CSV generator 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-generate)](https://www.npmjs.com/package/csv-generate)\n[![NPM](https://img.shields.io/npm/v/csv-generate)](https://www.npmjs.com/package/csv-generate)\n\nThe [`csv-generate` package](https://csv.js.org/generate/) provides a flexible generator of random CSV strings and Javascript objects implementing the Node.js `stream.Readable` API. It is part of the [CSV project](https://csv.js.org/).\n\n## Documentation\n\n* [Project homepage](https://csv.js.org/generate/)\n* [API](https://csv.js.org/generate/api/)\n* [Options](https://csv.js.org/generate/options/)\n* [Examples](https://csv.js.org/generate/examples/)\n\n## Main features\n\n* Scalable `stream.Readable` implementation\n* random or pseudo-random seed based generation\n* Idempotence with the \"seed\" option\n* User-defined value generation\n* Multiple types of values (integer, boolean, dates, ...)\n* MIT License\n\n## Usage\n\nRun `npm install csv` to install the full CSV module or run `npm install csv-generate` if you are only interested by the CSV generator.\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/generate/api/) is available in multiple flavors. This example illustrates the stream API.\n\n```js\nimport { generate } from 'csv-generate';\nimport assert from 'assert';\n\nconst records = [];\n// Initialize the generator\ngenerate({\n  seed: 1,\n  objectMode: true,\n  columns: 2,\n  length: 2\n})\n  // Use the readable stream api to consume generated records\n  .on('readable', function(){\n    let record; while((record = this.read()) !== null){\n      records.push(record);\n    }\n  })\n  // Catch any error\n  .on('error', function(err){\n    console.error(err);\n  })\n  // Test that the generated records matched the expected records\n  .on('end', function(){\n    assert.deepEqual(records, [\n      [ 'OMH', 'ONKCHhJmjadoA' ],\n      [ 'D', 'GeACHiN' ]\n    ]);\n  });\n```\n\n## Development\n\nTests are executed with [Mocha](https://mochajs.org/). To install it, simple run `npm install` followed by `npm test`. It will install mocha and its dependencies in your project \"node_modules\" directory and run the test suite. The tests run  against the CoffeeScript source files.\n\nTo generate the JavaScript files, run `npm run coffee`.\n\nThe test suite is run online with [Travis](https://travis-ci.org/#!/adaltas/node-csv-generate). See the [Travis definition file](https://github.com/adaltas/node-csv-generate/blob/master/.travis.yml) to view the tested Node.js version.\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":1543396782325,"_cnpm_publish_time":1543396782325,"dist-tags":{"latest":"4.6.2"}}