ndn browser shim is a brute force packaging of UCLA's NDN-js into a browserifieable npm module. Concerns:
Many Crypto libraries used in the context of globally exposed variables
Custom Buffer class normally gets overridden by node buffer browserify module
require calls from previous attempt at browserifiability fail when requiring the compiled library
Steps
remove all calls and definitions of require
if require calls a node module instead of a local file, replace with 'ndn'
build ndn.js with security libs
in addition to replacing the var Buffer function definition, global replace:
new Buffer >> new ndnbuf Buffer.proto >> ndnbuf.proto
export the new ndnbuf class so it can be accessed by ndn.ndnbuf