kevva / download

Download and extract files
MIT License
1.28k stars 200 forks source link

Different directory and rename #98

Closed screendriver closed 8 years ago

screendriver commented 8 years ago

I am using download-cli in one of my npm scripts. Is it possible to add a different output directory and a different file name? Like

$ ./node_modules/.bin/download -o myDir http://test.com/foo.json > bar.json

If I make this one above I get a bar.json in the root directory but not in myDir.

kevva commented 8 years ago

download http://test.com/foo.json > myDir/bar.json

screendriver commented 8 years ago

But this does not work when the directory myDir does not exist. -o myDir however creates not existing directories.