Wrapped parser in a function with callback and expose to other node modules