Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fast-csv

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-csv - npm Package Compare versions

Comparing version 0.6.0 to 1.0.0

History.md

11

lib/formatter/formatter_stream.js

@@ -19,2 +19,9 @@ var fs = require("fs"),

options.objectMode = true;
if (has(options, "transform")) {
// remove so its not set to _transform in Transform constructor
options.consumerTransform = options.transform;
delete options.transform;
}
Transform.call(this, options);

@@ -37,3 +44,3 @@ this.formatter = createFormatter(options, this);

this.includeEndRowDelimiter = !!options.includeEndRowDelimiter,
has(options, "transform") && this.transform(options.transform);
has(options, "consumerTransform") && this.transform(options.consumerTransform);
}

@@ -88,2 +95,2 @@ util.inherits(CsvTransformStream, Transform);

module.exports = CsvTransformStream;
module.exports = CsvTransformStream;

2

lib/formatter/index.js

@@ -80,2 +80,2 @@ var fs = require("fs"),

createWriteStream.writeToStream = writeToStream;
module.exports = createWriteStream;
module.exports = createWriteStream;

@@ -187,3 +187,2 @@ var extended = require("../extended"),

__emitRecord: function (dataRow, count) {
this.emit("record", dataRow, count);
if (this._emitData) {

@@ -344,2 +343,2 @@ this.push(this.__objectMode ? dataRow : JSON.stringify(dataRow));

module.exports = ParserStream;
module.exports = ParserStream;
{
"name": "fast-csv",
"version": "0.6.0",
"version": "1.0.0",
"description": "CSV parser and writer",

@@ -25,4 +25,4 @@ "main": "index.js",

"devDependencies": {
"it": "~0.2.6",
"grunt-it": "~0.3.1",
"it": "^1.0.1",
"grunt-it": "^1.0.0",
"grunt": "~0.4.1",

@@ -33,3 +33,3 @@ "grunt-contrib-jshint": "~0.10.0",

"engines": {
"node": ">=0.10"
"node": ">=4.0.0"
},

@@ -36,0 +36,0 @@ "dependencies": {

@@ -38,3 +38,2 @@ [![build status](https://secure.travis-ci.org/C2FO/fast-csv.png)](http://travis-ci.org/C2FO/fast-csv)

* `data`: Emitted when a record is parsed.
* `record`: Emitted when a record is parsed. **DEPRECATED**
* `data-invalid`: Emitted if there was invalid row encounted, **only emitted if the `validate` function is used or `strictColumnHandling=true`**.

@@ -630,3 +629,3 @@ * `data`: Emitted with the object or `stringified` version if the `objectMode` is set to `false`.

csv
.writeToStream("my.csv", [
.writeToPath("my.csv", [
{a: "a1", b: "b1"},

@@ -642,3 +641,3 @@ {a: "a2", b: "b2"}

csv
.writeToStream("my.csv", [
.writeToPath("my.csv", [
{a: "a1", b: "b1"},

@@ -645,0 +644,0 @@ {a: "a2", b: "b2"}

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc