named-data/ndn-js — pull request #41 by rynomad (2014-08-25 09:50:20+00:00)
Title: Ferossmerge

These commits should bring ndn-js gracefully to the npm ecosystem, while retaining the working status of the library when compiled using waf.

In Brief:
-security libs modified to use CommonJS require pattern in keeping with both nodes require semantics and our own shim require function.
-feross dependencies included explicitely (so as to achieve same result as with security libs)
-"require hoisting" in various files to avoid hiccoughs when used with browserify
-some facade files extracted to allow for browserify aliasing (see package.json)

NOTE:
-package.json should be changed to accurately reflect copywrite/license info (provided is simply what is necessary for the code to work, see note)
-It is generally considered redundant, even bad practice, to include 'js' in npm module names. Hence, "ndn-lib", of course, feel free to rename as seen fit.