Permalink
Browse files

Make this npmable

Change-Id: I3dbc396d358e044c11021a11d4d48b02335c9959
  • Loading branch information...
1 parent 159d6a3 commit 96b6696beddbd69d16f0cbf6e04e3c407d0ce5d2 @creationix committed Jan 18, 2011
Showing with 14 additions and 5 deletions.
  1. +0 −5 jsonparse.js
  2. +14 −0 package.json
View
@@ -82,11 +82,6 @@ proto.charError = function (buffer, i) {
};
proto.onError = function (err) { throw err; };
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: ");
//console.dir(buffer.toString());
var n;
View
@@ -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.