Browse Source

XMLHttpRequest compatibility for Node

pull/546/head
jlitowitz 7 years ago
parent
commit
880d629b94
  1. 3
      package.json
  2. 1
      papaparse.js

3
package.json

@ -53,5 +53,8 @@ @@ -53,5 +53,8 @@
"test-phantomjs": "node tests/test.js --phantomjs",
"test-node": "mocha tests/node-tests.js tests/test-cases.js",
"test": "npm run lint && npm run test-node && npm run test-phantomjs"
},
"dependencies": {
"xmlhttprequest": "^1.8.0"
}
}

1
papaparse.js

@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
https://github.com/mholt/PapaParse
License: MIT
*/
var XMLHttpRequest = XMLHttpRequest || require('xmlhttprequest').XMLHttpRequest;
(function(root, factory)
{
/* globals define */

Loading…
Cancel
Save