binary-csv
Advanced tools
Comparing version 0.1.7 to 0.2.0
13
index.js
@@ -1,2 +0,2 @@ | ||
var through = require('through') | ||
var through = require('through2') | ||
var extend = require('extend') | ||
@@ -25,2 +25,5 @@ | ||
// alias 'delimiter' to 'newline' | ||
if (opts.delimiter) opts.newline = opts.delimiter | ||
if (opts.detectNewlines) delete opts.newline | ||
@@ -31,3 +34,3 @@ else newline = new Buffer(opts.newline) | ||
var stream = through(write, end) | ||
var stream = through.obj(write, end) | ||
@@ -40,3 +43,3 @@ stream.line = line | ||
function write(buf) { | ||
function write(buf, enc, next) { | ||
@@ -93,2 +96,4 @@ inQuotes = false | ||
} | ||
next() | ||
} | ||
@@ -110,3 +115,3 @@ | ||
} | ||
stream.queue(lineBuffer) | ||
stream.push(lineBuffer) | ||
} | ||
@@ -113,0 +118,0 @@ |
{ | ||
"name": "binary-csv", | ||
"version": "0.1.7", | ||
"version": "0.2.0", | ||
"description": "A fast CSV binary data parser written in javascript", | ||
@@ -15,4 +15,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"through": "~2.3.4", | ||
"extend": "~1.2.1" | ||
"extend": "~1.2.1", | ||
"through2": "^0.4.1" | ||
}, | ||
@@ -19,0 +19,0 @@ "devDependencies": { |
@@ -17,7 +17,7 @@ # binary-csv | ||
[![http://requirebin.com/?gist=7555664](http://requirebin.com/badge.png)](http://requirebin.com/?gist=7555664) | ||
[![http://requirebin.com/?gist=maxogden/7555664](http://requirebin.com/badge.png)](http://requirebin.com/?gist=maxogden/7555664) | ||
You can also load any CSV on the internet via querystring, e.g.: | ||
http://requirebin.com/embed?gist=7555664&csv=http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv | ||
http://requirebin.com/embed?gist=maxogden/7555664&csv=http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv | ||
@@ -24,0 +24,0 @@ Huge CSVs might be slow to render because of the terminal renderer used in the demo. |
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
16412
363
+ Addedthrough2@^0.4.1
+ Addedcore-util-is@1.0.3(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedobject-keys@0.4.0(transitive)
+ Addedreadable-stream@1.0.34(transitive)
+ Addedstring_decoder@0.10.31(transitive)
+ Addedthrough2@0.4.2(transitive)
+ Addedxtend@2.1.2(transitive)
- Removedthrough@~2.3.4
- Removedthrough@2.3.8(transitive)