function urlToPromise(url) {
  return new Promise((resolve, reject) => {
    JSZipUtils.getBinaryContent(url, (err, data) => {
      if (err) {
        reject(err);
      } else {
        resolve(data);
      }
    });
  });
}
/**
 * Fetch the content and return the associated promise.
 * @param {String} url the url of the content to fetch.
 * @return {Promise} the promise containing the data.
 */
Fetch the content and return the associated promise.
@param {String} url the url of the content to fetch.
@return {Promise} the promise containing the data.
Fetch the content and return the associated promise . @param { String } url the url of the content to fetch . @return { Promise } the promise containing the data .
function urlToPromise(url) {
  return new Promise((resolve, reject) => {
    JSZipUtils.getBinaryContent(url, (err, data) => {
      if (err) {
        reject(err);
      } else {
        resolve(data);
      }
    });
  });
}
function urlToPromise ( url ) { return new Promise ( ( resolve , reject ) => { JSZipUtils . getBinaryContent ( url , ( err , data ) => { if ( err ) { reject ( err ) ; } else { resolve ( data ) ; } } ) ; } ) ; }
Fetch the content and return the associated promise.
Fetch the content and return the associated promise .