downloadable
Check if url downloadable before download.
- resolve a promise with the HTTP headers when given URL is downloadable (should have 'content-type' and 'content-length')
- reject a promise with error message when given URL is not downloadable
Install
$ npm install --save downloadable
Test
$ npm test
Usage
const downloadable = ; const imageUrl = 'https://cdn1.iconfinder.com/data/icons/logotypes/32/square-facebook-512.png' ;