Browse Source

Removed stream require at top of file

pull/494/head
Trevor Harwell 7 years ago
parent
commit
82fcfeac58
  1. 10
      papaparse.js

10
papaparse.js

@ -17,14 +17,14 @@
// Node. Does not work with strict CommonJS, but // Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports, // only CommonJS-like environments that support module.exports,
// like Node. // like Node.
module.exports = factory(require('stream')); module.exports = factory();
} }
else else
{ {
// Browser globals (root is window) // Browser globals (root is window)
root.Papa = factory(); root.Papa = factory();
} }
}(this, function(streamModule) }(this, function()
{ {
'use strict'; 'use strict';
@ -864,10 +864,10 @@
// logic is handled by the Duplex class // logic is handled by the Duplex class
}; };
// streamModule from node must exist // stream module from node must exist
// for this to run // for this to run
var stream = require('stream'); var Duplex = require('stream').Duplex;
var duplexStream = new stream.Duplex({ var duplexStream = new Duplex({
readableObjectMode: true, readableObjectMode: true,
decodeStrings: false, decodeStrings: false,
read: function(size) { read: function(size) {

Loading…
Cancel
Save