{"version":"3.3.0","name":"csv-generate","description":"CSV and object generation implementing the Node.js `stream.Readable` API","keywords":["stream","generate","csv","object"],"license":"MIT","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":"https://www.adaltas.com"},"coffeelintConfig":{"indentation":{"level":"error","value":2},"line_endings":{"level":"error","value":"unix"},"max_line_length":{"level":"ignore"}},"devDependencies":{"@babel/cli":"^7.12.1","@babel/core":"^7.12.3","@babel/preset-env":"^7.12.1","@types/mocha":"^8.0.4","@types/node":"^14.14.7","@types/should":"^13.0.0","coffeescript":"~2.5.1","each":"^1.2.2","mocha":"~8.2.1","should":"~13.2.3","ts-node":"^9.0.0","typescript":"^4.0.5"},"main":"./lib","optionalDependencies":{},"mocha":{"throw-deprecation":true,"require":["should","coffeescript/register","ts-node/register"],"inline-diffs":true,"timeout":40000,"reporter":"spec","recursive":true},"scripts":{"preversion":"grep '## Trunk' CHANGELOG.md && rm -rf lib/*.js && 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'","build":"coffee -b -o lib src && cd lib && babel *.js -d es5 && cd ..","pretest":"npm run build","test":"mocha test/**/*.{coffee,ts}"},"types":"./lib/index.d.ts","gitHead":"7efabd3ba31e6a610cd4875c4a8e9011756224dd","dependencies":{},"_id":"csv-generate@3.3.0","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-EXSru4QwEWKwM7wwsJbhrZC+mHEJrhQFoXlohHs80CAU8Qhlv9gaw1sjzNiC3Hr3oUx5skDmEiAlz+tnKWV0RA==","shasum":"0e25658f1bb9806d94fec7b270896a35c7eedf1a","tarball":"http://registry-npm.ywwl.com/csv-generate/download/csv-generate-3.3.0.tgz","fileCount":10,"unpackedSize":31250,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfslbgCRA9TVsSAnZWagAA1OkP/0P03M7qy8nI8NwqA0vO\n+Ez8uSGxM1M6FQepUqAimX+pToTi+SzbJEw0lDETDfLNeycUQHDRRBU9ENFZ\nhWOtCQ1UZ2roSPFAwDABcN29cU6sXMooYOgdaqDN57ZqOooy8EbccQyUtcCW\naluXLv7AGLN6ho6IghuAP/pRbAjY4IZDO3B/Lfdm7F0gZxoDFrCL51CkGw0T\n+sk+chPo7us2W2kz1sO9OznVY/Sy7kCtDDk5cGhP4AGyJvCt/dh2/j55VZcN\nW495MbrCPQ5cy06fcKXwC/zB9WYLzoruxw7hFxzbFsFGXOgR3Tqv7yBbW0kr\nUCvNj7qgWTER4UZIFJQ+E3BHJatcAiY57S+xjXzo6vmgTgbYK0a42LhwJ+dm\n+z7VKsxofjc6Dl8ZyspR2cg6z2AgHL3uqFTc1a66mENX3stPzVZhWwPJ5x6b\n80v6nPTUaAyb6E9bWp5rOfCwfSWeqWE+Bpqnny2dipjdK/VNlrAZzVg3eHme\n3NxEkBOgpzVGNzFzWC/PzGknaoQpANpdtQKiy9hUreJZCqSdxiIkWf68pUYK\n9j7PZ2h1vUUsc+JYKi+tbZKdE6vb3AFir+w29KOQC1QEiBQA2G3DAhbc6vpy\nQ9TJbUkM7hlXQuzajzZffuUYTUR2mlT8Vp7xl7IzMM3htKoLeOYWzO7rk1Cq\nnAOD\r\n=ByzW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFd+YZ8MJy9zTuXTEuaBVNOKOqYvScE5kOOMRObwnOvqAiEA94Go4qAcTCf8hj3W8r7wVEtyqlOs2u7Qu0bt0hRBxzg="}],"size":7827,"noattachment":false,"key":"/csv-generate/-/csv-generate-3.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-generate_3.3.0_1605523167939_0.015520087466995403"},"_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":1605523168084,"_cnpm_publish_time":1605523168084,"dist-tags":{"latest":"4.6.2"}}