atomicpages / gulp-download2

A better download utility for gulp
MIT License
6 stars 3 forks source link

docs update #2

Closed ParallelUniv3rse closed 6 years ago

ParallelUniv3rse commented 6 years ago

Trying to download multiple json files and set their names like so:

    [{
        url: config.getTranslationApiUrl("en"),
        name: 'en.json',
    },{
        url: config.getTranslationApiUrl("de"),
        name: 'de.json',
    }]

failed with an error Error: No path specified! Can not get relative.

Looking into the source code if found that updating the array to

    [{
        url: config.getTranslationApiUrl("en"),
        file: 'en.json',
    },{
        url: config.getTranslationApiUrl("de"),
        file: 'de.json',
    }]

solves the issue. I suggeest updating the readme.

atomicpages commented 6 years ago

@ParallelUniv3rse sure. Thanks!

jsve commented 5 years ago

This is still not fixed on npm.