csv-generate
Advanced tools
Comparing version 2.0.2 to 2.1.0
# Changelog | ||
## Version 2.1.0 | ||
* sync: new module to ease synchronous usage | ||
## Version 2.0.2 | ||
@@ -5,0 +9,0 @@ |
@@ -6,8 +6,8 @@ 'use strict'; | ||
// A Readable Stream for random CSV and data generator. Features include: | ||
// A Readable Stream for random CSV and data generator. Features include: | ||
// * Node.js Stream 2 implementation. | ||
// * Idempotence with the "seed" option. | ||
// * Framework to generate custom data. | ||
// * Various option to personnalize the generation. | ||
// * Node.js Stream 2 implementation. | ||
// * Idempotence with the "seed" option. | ||
// * Framework to generate custom data. | ||
// * Various option to personnalize the generation. | ||
@@ -25,11 +25,13 @@ // Please look at the [documentation], the [README], the [samples] and the | ||
// ## Usage | ||
// ## Usage | ||
// Callback approach, for ease of use: | ||
// Stream API, for maximum of power: | ||
// `generate([options])` | ||
// `generate([options])` | ||
// Stream API, for maximum of power: | ||
// Callback approach, for ease of use: | ||
// `generate([options], callback)` | ||
// `generate([options], callback)` | ||
// ## Source Code | ||
module.exports = function () { | ||
@@ -80,5 +82,2 @@ var callback, data, generator, options; | ||
this.options = options1; | ||
// @options = {} | ||
// for k, v of options | ||
// @options[k] = v | ||
stream.Readable.call(this, this.options); | ||
@@ -85,0 +84,0 @@ if ((base = this.options).columns == null) { |
// Generated by CoffeeScript 2.0.3 | ||
// # CSV Generator | ||
// A Readable Stream for random CSV and data generator. Features include: | ||
// A Readable Stream for random CSV and data generator. Features include: | ||
// * Node.js Stream 2 implementation. | ||
// * Idempotence with the "seed" option. | ||
// * Framework to generate custom data. | ||
// * Various option to personnalize the generation. | ||
// * Node.js Stream 2 implementation. | ||
// * Idempotence with the "seed" option. | ||
// * Framework to generate custom data. | ||
// * Various option to personnalize the generation. | ||
@@ -20,11 +20,13 @@ // Please look at the [documentation], the [README], the [samples] and the | ||
// ## Usage | ||
// ## Usage | ||
// Callback approach, for ease of use: | ||
// Stream API, for maximum of power: | ||
// `generate([options])` | ||
// `generate([options])` | ||
// Stream API, for maximum of power: | ||
// Callback approach, for ease of use: | ||
// `generate([options], callback)` | ||
// `generate([options], callback)` | ||
// ## Source Code | ||
module.exports = function() { | ||
@@ -73,5 +75,2 @@ var callback, data, generator, options; | ||
this.options = options1; | ||
// @options = {} | ||
// for k, v of options | ||
// @options[k] = v | ||
stream.Readable.call(this, this.options); | ||
@@ -78,0 +77,0 @@ if ((base = this.options).columns == null) { |
{ | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"name": "csv-generate", | ||
@@ -4,0 +4,0 @@ "description": "CSV and object generation implementing the Node.js `stream.Readable` API", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82345
13
563