refactor(npm module): Change way to expose lib