diff --git a/index.js b/index.js index 87201ad..93816b0 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,6 @@ var Parser = require('jsonparse') , Stream = require('stream').Stream + , Buffer = require('buffer-browserify').Buffer /* diff --git a/package.json b/package.json index 68210a8..4075339 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "url": "git://github.com/dominictarr/JSONStream.git" }, "dependencies": { - "jsonparse": "0.0.2" + "jsonparse": "0.0.2", + "buffer-browserify": "0.0.3" }, "devDependencies": { "it-is": "~1",