Permalink
Browse files

Added package.json and adjusted require for mpBindings to relative pa…

…th. Now ready for npm.
  • Loading branch information...
1 parent 989ee3b commit 859d036ca9452ef2be149e2dc57ced5563c90f21 @tomtaylor tomtaylor committed Nov 29, 2010
Showing with 26 additions and 1 deletion.
  1. +1 −1 lib/msgpack.js
  2. +25 −0 package.json
View
@@ -2,7 +2,7 @@
var buffer = require('buffer');
var events = require('events');
-var mpBindings = require('mpBindings');
+var mpBindings = require('../build/default/mpBindings');
var sys = require('sys');
var pack = mpBindings.pack;
View
@@ -0,0 +1,25 @@
+{
+ "name": "msgpack",
+ "description": "A space-efficient object serialization library for node.js",
+ "version": "0.1.2",
+ "homepage": "https://github.com/pgriess/node-msgpack",
+ "author": "Peter Griess <pg@std.in>",
+ "contributors": [
+ "Tom Taylor <tom@tomtaylor.co.uk> (http://tomtaylor.co.uk)"
+ ],
+ "main": "./lib/msgpack",
+ "directories": {
+ "lib": "lib"
+ },
+ "engines": {
+ "node": ">=0.1.97"
+ },
+ "scripts": {
+ "preinstall": "make",
+ "preuninstall": "make clean"
+ },
+ "bin": {
+ "json2msgpack": "./bin/json2msgpack",
+ "msgpack2json": "./bin/msgpack2json"
+ }
+}

0 comments on commit 859d036

Please sign in to comment.