Created
April 15, 2019 23:02
-
-
Save mohitt/b91eac5835a2dfd9bc1707d22f2ad313 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require('request-to-curl'); | |
| require('request-debug')(request, function(type, data, r) { | |
| console.log(r.req.toCurl()); | |
| // put your request or response handling logic here | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment