missing transform function while migrating from request-response #1791
-
What would you like to discuss?Hello, I am replacing request-promise with got in my package: I was using transform method of request-method which takes a function to transform the response into a custom value with which the promise is resolved. is there any way I can transform in 'got'? my current transform code:
Checklist
|
Beta Was this translation helpful? Give feedback.
Answered by
sindresorhus
Jul 17, 2021
Replies: 1 comment
-
You could use the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ehmad11
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could use the
afterResponse
hook.