TritonDataCenter / node-assert-plus

Extra assertions on top of node's assert module
MIT License
122 stars 25 forks source link

Expose API for package extension #26

Open bisubus opened 8 years ago

bisubus commented 8 years ago

It would be beneficial to add existing internals to exports, so package could be wrapped and extended instead of forking, namely _setExports and _types (the object is hard-coded in _setExports).

The thing I've noticed is that process.env.NODE_NDEBUG is referred twice, so providing _setExports with argument on recurring export won't take effect.

Can it be done?