Export appropriate object when npm module is required