Skip to content

Commit

Permalink
Make this npmable
Browse files Browse the repository at this point in the history
Change-Id: I3dbc396d358e044c11021a11d4d48b02335c9959
  • Loading branch information
creationix committed Jan 18, 2011
1 parent 159d6a3 commit 96b6696
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
5 changes: 0 additions & 5 deletions jsonparse.js
Expand Up @@ -82,11 +82,6 @@ proto.charError = function (buffer, i) {
}; };
proto.onError = function (err) { throw err; }; proto.onError = function (err) { throw err; };
proto.write = function (buffer) { proto.write = function (buffer) {
// TODO: Don't require this conversion to accept strings
// It's probably quite expensive
if (typeof buffer === 'string') {
buffer = new Buffer(buffer);
}
//process.stdout.write("Input: "); //process.stdout.write("Input: ");
//console.dir(buffer.toString()); //console.dir(buffer.toString());
var n; var n;
Expand Down
14 changes: 14 additions & 0 deletions package.json
@@ -0,0 +1,14 @@
{
"name": "jsonparse",
"description": "This is a pure-js JSON streaming parser for node.js",
"tags": ["json", "stream"],
"version": "0.0.1",
"author": "Tim Caswell <tim@creationix.com>",
"repository": {
"type": "git",
"url": "http://github.com/creationix/jsonparse.git"
},
"bugs": "http://github.com/creationix/jsonparse/issues",
"engines": ["node >= 0.2.0"],
"main": "jsonparse.js"
}

0 comments on commit 96b6696

Please sign in to comment.