Socket
Socket
Sign inDemoInstall

csv-stringify

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv-stringify - npm Package Compare versions

Comparing version 2.0.4 to 2.1.0

9

CHANGELOG.md
# Changelog
## Version 2.1.0
* package: allow empty quote value
* package: add ascii option for rowDelimiter
## Version 2.0.4

@@ -24,4 +29,4 @@

This major version use CoffeeScript 2 which produces a modern JavaScript syntax
(ES6, or ES2015 and later) and break the compatibility with versions of Node.js
This major version use CoffeeScript 2 which produces a modern JavaScript syntax
(ES6, or ES2015 and later) and break the compatibility with versions of Node.js
lower than 7.6 as well as the browsers. It is however stable in term of API.

@@ -28,0 +33,0 @@

@@ -186,2 +186,5 @@ 'use strict';

break;
case 'ascii':
this.options.rowDelimiter = '\x1E';
break;
case 'unicode':

@@ -342,3 +345,3 @@ this.options.rowDelimiter = '\u2028';

containsdelimiter = field.indexOf(delimiter) >= 0;
containsQuote = field.indexOf(quote) >= 0;
containsQuote = quote !== '' && field.indexOf(quote) >= 0;
containsEscape = field.indexOf(escape) >= 0 && escape !== quote;

@@ -345,0 +348,0 @@ containsLinebreak = field.indexOf('\r') >= 0 || field.indexOf('\n') >= 0;

@@ -180,2 +180,5 @@ // Generated by CoffeeScript 2.0.3

break;
case 'ascii':
this.options.rowDelimiter = "\u001e";
break;
case 'unicode':

@@ -335,3 +338,3 @@ this.options.rowDelimiter = "\u2028";

containsdelimiter = field.indexOf(delimiter) >= 0;
containsQuote = field.indexOf(quote) >= 0;
containsQuote = (quote !== '') && field.indexOf(quote) >= 0;
containsEscape = field.indexOf(escape) >= 0 && (escape !== quote);

@@ -338,0 +341,0 @@ containsLinebreak = field.indexOf('\r') >= 0 || field.indexOf('\n') >= 0;

{
"version": "2.0.4",
"version": "2.1.0",
"name": "csv-stringify",

@@ -4,0 +4,0 @@ "description": "CSV stringifier implementing the Node.js `stream.Transform` API",

@@ -27,5 +27,5 @@ [![Build Status](https://secure.travis-ci.org/adaltas/node-csv-stringify.svg)][travis]

Refer to the [project webpage][home] for [an exhaustive list of options][home]
and [some usage examples][examples].
and [some usage examples][examples].
The module is built on the Node.js Stream API. For the sake of simplify, a
The module is built on the Node.js Stream API. For the sake of simplicity, a
simple callback API is also provided. To give you a quick look, here's an

@@ -39,3 +39,3 @@ example of the callback API:

stringify(input, function(err, output){
output.should.eql('1,2,3,4\na,b,c,d');
output.should.eql('1,2,3,4\na,b,c,d\n');
});

@@ -47,5 +47,5 @@ ```

Tests are executed with mocha. 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
Tests are executed with mocha. To install it, 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.

@@ -55,3 +55,3 @@

The test suite is run online with [Travis][travis] against the versions
The test suite is run online with [Travis][travis] against the versions
0.10, 0.11 and 0.12 of Node.js.

@@ -65,4 +65,6 @@

[home]: http://csv.adaltas.com/stringify/
[csv_home]: https://github.com/adaltas/node-csv
[stream_transform]: http://nodejs.org/api/stream.html#stream_class_stream_transform
[examples]: http://csv.adaltas.com/stringify/examples/
[csv]: https://github.com/adaltas/node-csv
[travis]: https://travis-ci.org/#!/adaltas/node-csv-stringify
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