trondn/couchnode — pull request #3 by jhs (2012-09-07 04:11:00+00:00)
Title: npm-friendly package.json

Here is a bare-bones pacakge.json file that should make npm publishing easier.

The key is the "script" value, and the "main" value. Currently main (the entry point when somebody require()s you) points directly to the compiled library. However see how node-redis does it with its C library: https://github.com/pietern/hiredis-node/blob/master/hiredis.js#L3-7

Note also that hiredis-node bundles its own client library (source code). There is no need for the library user to do so.