Instead of exposing functions. Let the package manages the API by it self.
The entry script of a package becomes the exported function to the modules that require it.
This allows package authors to write main modules. While having the possibility to expose them as libraries.