dsherret / dax

Cross-platform shell tools for Deno and Node.js inspired by zx.
MIT License
1.01k stars 35 forks source link

request.pipeToPath: add an option to override file #66

Closed sigmaSd closed 1 year ago

sigmaSd commented 1 year ago

Currently it will override any existing file, maybe having an option for that is better

dsherret commented 1 year ago

I think you're looking for .pipeToPath(undefined, { createNew: true })? Maybe this could be improved to have the second arg be the first when the path doesn't need to be provided.

sigmaSd commented 1 year ago

Thanks didn't see it