Skip to content
Browse files

Document the pretend option

  • Loading branch information...
1 parent a83ee99 commit 03cbfadd1dfa85238099453d376c50d8b99a9441 @chriso committed
Showing with 11 additions and 0 deletions.
  1. +11 −0
@@ -114,6 +114,17 @@ temporary files.
Pipe the stderr of each curl process to the main process. Set this to a
string to write stderr to a file.
+`pretend` - *default: false*
+Useful if you want to see what curl command is to be executed without actually
+making the request
+curl.request({ url: '', pretend: true }, function (err, stdout, meta) {
+ console.log('%s %s', meta.cmd, meta.args.join(' '));
### Passing options directly to curl
Any additional options are sent as command line options to curl. See `man

0 comments on commit 03cbfad

Please sign in to comment.
Something went wrong with that request. Please try again.