diff --git a/README.md b/README.md index cc9f326..ebef60d 100644 --- a/README.md +++ b/README.md @@ -469,21 +469,6 @@ Building the library npm install npm run build -To generate documentation in `doc/`: - - npm run jsdoc - -or in markdown format as `api.md` - - npm run jsdoc2md - -The playground is just `jsdoc` with some extra text containing Kirby and the code samples and such. - -So unfortunately you will need to do a manual diff to get the docs up to date. You'll need to diff: - -* `README.md` to its previous version (make sure to keep the code samples, which were manually added) -* `docs` to its previous version - Testing the library ---- diff --git a/docs/index.html b/docs/index.html index 1c1fc99..824b2a1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,16 +1,28 @@ - - Playground for blob-util + + + Playground for blob-util - - - - - + + + + + + @@ -20,2636 +32,30 @@

Playground for blob-util

-

Welcome to the docs and playground for blob-util!

-

Below you'll find API documentation, as well as a little Kirby GIF you can play around with.

+

Welcome to the playground for blob-util!

+

Below is a little Kirby GIF you can play around with.

Kirby

Here's some code to get you started. Copy-paste this into your console:

-
-var img = document.getElementById('kirby');
+    
+    var img = document.getElementById('kirby');
 
-blobUtil.imgSrcToBlob(img.src).then(function (blob) {
-  var blobURL = blobUtil.createObjectURL(blob);
+    blobUtil.imgSrcToBlob(img.src).then(function (blob) {
+      var blobURL = blobUtil.createObjectURL(blob);
 
-  var newImg = document.createElement('img');
-  newImg.src = blobURL;
+      var newImg = document.createElement('img');
+      newImg.src = blobURL;
 
-  img.parentNode.appendChild(newImg);
-});
+      img.parentNode.appendChild(newImg);
+    });
 

If you see two Kirbys, you're on your way!

- - - -
- -
- -

- - -
- -
-
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

arrayBufferToBlob(buffer, type) → {Promise}

- - - - - - -
- Convert an ArrayBuffer to a Blob. Returns a Promise.
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
buffer - - -ArrayBuffer - - - -
type - - -string -| - -undefined - - - - the content type (optional)
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
- Promise that resolves with the Blob -
- - - -
-
- Type -
-
- -Promise - - -
-
- - - - - - - - - - - - - -

base64StringToBlob(base64, type) → {Promise}

- - - - - - -
- Convert a base64-encoded string to a Blob. Returns a Promise. -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
base64 - - -string - - - -
type - - -string -| - -undefined - - - - the content type (optional)
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
- Promise that resolves with the Blob -
- - - -
-
- Type -
-
- -Promise - - -
-
- - - - - - - - - - - - - -

binaryStringToBlob(binary, type) → {Promise}

- - - - - - -
- Convert a binary string to a Blob. Returns a Promise. -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
binary - - -string - - - -
type - - -string -| - -undefined - - - - the content type (optional)
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
- Promise that resolves with the Blob -
- - - -
-
- Type -
-
- -Promise - - -
-
- - - - - - - - - - - - - -

blobToArrayBuffer(blob) → {Promise}

- - - - - - -
- Convert a Blob to an ArrayBuffer. Returns a Promise. -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
blob - - -Blob - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
- Promise that resolves with the ArrayBuffer -
- - - -
-
- Type -
-
- -Promise - - -
-
- - - - - - - - - - - - - -

blobToBase64String(blob) → {Promise}

- - - - - - -
- Convert a Blob to a binary string. Returns a Promise. -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
blob - - -Blob - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
- Promise that resolves with the binary string -
- - - -
-
- Type -
-
- -Promise - - -
-
- - - - - - - - - - - - - -

blobToBinaryString(blob) → {Promise}

- - - - - - -
- Convert a Blob to a binary string. Returns a Promise. -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
blob - - -Blob - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
- Promise that resolves with the binary string -
- - - -
-
- Type -
-
- -Promise - - -
-
- - - - - - - - - - - - - -

blobToDataURL(blob) → {Promise}

- - - - - - -
- Convert a Blob to a data URL string -(e.g. 'data:image/png;base64,iVBORw0KG...'). -Returns a Promise. -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
blob - - -Blob - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
- Promise that resolves with the data URL string -
- - - -
-
- Type -
-
- -Promise - - -
-
- - - - - - - - - - - - - -

canvasToBlob(canvas, type, quality) → {Promise}

- - - - - - -
- Convert a canvas to a Blob. Returns a Promise. -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
canvas - - -string - - - -
type - - -string -| - -undefined - - - - the content type (optional, defaults to 'image/png')
quality - - -number -| - -undefined - - - - a number between 0 and 1 indicating image quality - if the requested type is 'image/jpeg' or 'image/webp'
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
- Promise that resolves with the Blob -
- - - -
-
- Type -
-
- -Promise - - -
-
- - - - - - - - - - - - - -

createBlob(parts, options) → {Blob}

- - - - - - - - - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
parts - - -Array - - - - content of the Blob
options - - -Object - - - - usually just {type: myContentType}
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - - - -
-
- Type -
-
- -Blob - - -
-
- - - - - - - - - - - - - -

createObjectURL(blob) → {string}

- - - - - - -
- Shim for -URL.createObjectURL() -to support browsers that only have the prefixed -webkitURL (e.g. Android <4.4). -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
blob - - -Blob - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
- url -
- - - -
-
- Type -
-
- -string - - -
-
- - - - - - - - - - - - - -

dataURLToBlob(dataURL) → {Promise}

- - - - - - -
- Convert a data URL string -(e.g. 'data:image/png;base64,iVBORw0KG...') -to a Blob. Returns a Promise. -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
dataURL - - -string - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
- Promise that resolves with the Blob -
- - - -
-
- Type -
-
- -Promise - - -
-
- - - - - - - - - - - - - -

imgSrcToBlob(src, type, crossOrigin, quality) → {Promise}

- - - - - - -
- Convert an image's src URL to a Blob by loading the image and painting -it to a canvas. Returns a Promise. - -

Note: this will coerce the image to the desired content type, and it -will only paint the first frame of an animated GIF. -

- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
src - - -string - - - -
type - - -string -| - -undefined - - - - the content type (optional, defaults to 'image/png')
crossOrigin - - -string -| - -undefined - - - - for CORS-enabled images, set this to - 'Anonymous' to avoid "tainted canvas" errors
quality - - -number -| - -undefined - - - - a number between 0 and 1 indicating image quality - if the requested type is 'image/jpeg' or 'image/webp'
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
- Promise that resolves with the Blob -
- - - -
-
- Type -
-
- -Promise - - -
-
- - - - - - - - - - - - - -

imgSrcToDataURL(src, type, crossOrigin, quality) → {Promise}

- - - - - - -
- Convert an image's src URL to a data URL by loading the image and painting -it to a canvas. Returns a Promise. - -

Note: this will coerce the image to the desired content type, and it -will only paint the first frame of an animated GIF. -

- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
src - - -string - - - -
type - - -string -| - -undefined - - - - the content type (optional, defaults to 'image/png')
crossOrigin - - -string -| - -undefined - - - - for CORS-enabled images, set this to - 'Anonymous' to avoid "tainted canvas" errors
quality - - -number -| - -undefined - - - - a number between 0 and 1 indicating image quality - if the requested type is 'image/jpeg' or 'image/webp'
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
- Promise that resolves with the data URL string -
- - - -
-
- Type -
-
- -Promise - - -
-
- - - - - - - - - - - - - -

revokeObjectURL(url)

- - - - - - -
- Shim for -URL.revokeObjectURL() -to support browsers that only have the prefixed -webkitURL (e.g. Android <4.4). -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
url - - -string - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - -
- - - - - + + \ No newline at end of file diff --git a/docs/index.js.html b/docs/index.js.html deleted file mode 100644 index 542a18d..0000000 --- a/docs/index.js.html +++ /dev/null @@ -1,374 +0,0 @@ - - - - - JSDoc: Source: index.js - - - - - - - - - - -
- -

Source: index.js

- - - - - - -
-
-
'use strict';
-
-/* jshint -W079 */
-var Blob = require('blob');
-var Promise = require('native-or-lie');
-
-//
-// PRIVATE
-//
-
-// From http://stackoverflow.com/questions/14967647/ (continues on next line)
-// encode-decode-image-with-base64-breaks-image (2013-04-21)
-function binaryStringToArrayBuffer(binary) {
-  var length = binary.length;
-  var buf = new ArrayBuffer(length);
-  var arr = new Uint8Array(buf);
-  var i = -1;
-  while (++i < length) {
-    arr[i] = binary.charCodeAt(i);
-  }
-  return buf;
-}
-
-// Can't find original post, but this is close
-// http://stackoverflow.com/questions/6965107/ (continues on next line)
-// converting-between-strings-and-arraybuffers
-function arrayBufferToBinaryString(buffer) {
-  var binary = '';
-  var bytes = new Uint8Array(buffer);
-  var length = bytes.byteLength;
-  var i = -1;
-  while (++i < length) {
-    binary += String.fromCharCode(bytes[i]);
-  }
-  return binary;
-}
-
-// doesn't download the image more than once, because
-// browsers aren't dumb. uses the cache
-function loadImage(src, crossOrigin) {
-  return new Promise(function (resolve, reject) {
-    var img = new Image();
-    if (crossOrigin) {
-      img.crossOrigin = crossOrigin;
-    }
-    img.onload = function () {
-      resolve(img);
-    };
-    img.onerror = reject;
-    img.src = src;
-  });
-}
-
-function imgToCanvas(img) {
-  var canvas = document.createElement('canvas');
-
-  canvas.width = img.width;
-  canvas.height = img.height;
-
-  // copy the image contents to the canvas
-  var context = canvas.getContext('2d');
-  context.drawImage(
-    img,
-    0, 0,
-    img.width, img.height,
-    0, 0,
-    img.width, img.height);
-
-  return canvas;
-}
-
-//
-// PUBLIC
-//
-
-/**
- * Shim for
- * [new Blob()]{@link https://developer.mozilla.org/en-US/docs/Web/API/Blob.Blob}
- * to support
- * [older browsers that use the deprecated <code>BlobBuilder</code> API]{@link http://caniuse.com/blob}.
- *
- * @param {Array} parts - content of the <code>Blob</code>
- * @param {Object} options - usually just <code>{type: myContentType}</code>
- * @returns {Blob}
- */
-function createBlob(parts, options) {
-  options = options || {};
-  if (typeof options === 'string') {
-    options = {type: options}; // do you a solid here
-  }
-  return new Blob(parts, options);
-}
-
-/**
- * Shim for
- * [URL.createObjectURL()]{@link https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL}
- * to support browsers that only have the prefixed
- * <code>webkitURL</code> (e.g. Android <4.4).
- * @param {Blob} blob
- * @returns {string} url
- */
-function createObjectURL(blob) {
-  return (window.URL || window.webkitURL).createObjectURL(blob);
-}
-
-/**
- * Shim for
- * [URL.revokeObjectURL()]{@link https://developer.mozilla.org/en-US/docs/Web/API/URL.revokeObjectURL}
- * to support browsers that only have the prefixed
- * <code>webkitURL</code> (e.g. Android <4.4).
- * @param {string} url
- */
-function revokeObjectURL(url) {
-  return (window.URL || window.webkitURL).revokeObjectURL(url);
-}
-
-/**
- * Convert a <code>Blob</code> to a binary string. Returns a Promise.
- *
- * @param {Blob} blob
- * @returns {Promise} Promise that resolves with the binary string
- */
-function blobToBinaryString(blob) {
-  return new Promise(function (resolve, reject) {
-    var reader = new FileReader();
-    var hasBinaryString = typeof reader.readAsBinaryString === 'function';
-    reader.onloadend = function (e) {
-      var result = e.target.result || '';
-      if (hasBinaryString) {
-        return resolve(result);
-      }
-      resolve(arrayBufferToBinaryString(result));
-    };
-    reader.onerror = reject;
-    if (hasBinaryString) {
-      reader.readAsBinaryString(blob);
-    } else {
-      reader.readAsArrayBuffer(blob);
-    }
-  });
-}
-
-/**
- * Convert a base64-encoded string to a <code>Blob</code>. Returns a Promise.
- * @param {string} base64
- * @param {string|undefined} type - the content type (optional)
- * @returns {Promise} Promise that resolves with the <code>Blob</code>
- */
-function base64StringToBlob(base64, type) {
-  return Promise.resolve().then(function () {
-    var parts = [binaryStringToArrayBuffer(atob(base64))];
-    return type ? createBlob(parts, {type: type}) : createBlob(parts);
-  });
-}
-
-/**
- * Convert a binary string to a <code>Blob</code>. Returns a Promise.
- * @param {string} binary
- * @param {string|undefined} type - the content type (optional)
- * @returns {Promise} Promise that resolves with the <code>Blob</code>
- */
-function binaryStringToBlob(binary, type) {
-  return Promise.resolve().then(function () {
-    return base64StringToBlob(btoa(binary), type);
-  });
-}
-
-/**
- * Convert a <code>Blob</code> to a binary string. Returns a Promise.
- * @param {Blob} blob
- * @returns {Promise} Promise that resolves with the binary string
- */
-function blobToBase64String(blob) {
-  return blobToBinaryString(blob).then(function (binary) {
-    return btoa(binary);
-  });
-}
-
-/**
- * Convert a data URL string
- * (e.g. <code>'data:image/png;base64,iVBORw0KG...'</code>)
- * to a <code>Blob</code>. Returns a Promise.
- * @param {string} dataURL
- * @returns {Promise} Promise that resolves with the <code>Blob</code>
- */
-function dataURLToBlob(dataURL) {
-  return Promise.resolve().then(function () {
-    var type = dataURL.match(/data:([^;]+)/)[1];
-    var base64 = dataURL.replace(/^[^,]+,/, '');
-
-    var buff = binaryStringToArrayBuffer(atob(base64));
-    return createBlob([buff], {type: type});
-  });
-}
-
-/**
- * Convert a <code>Blob</code> to a data URL string
- * (e.g. <code>'data:image/png;base64,iVBORw0KG...'</code>).
- * Returns a Promise.
- * @param {Blob} blob
- * @returns {Promise} Promise that resolves with the data URL string
- */
-function blobToDataURL(blob) {
-  return blobToBase64String(blob).then(function (base64String) {
-    return 'data:' + blob.type + ';base64,' + base64String;
-  });
-}
-
-/**
- * Convert an image's <code>src</code> URL to a data URL by loading the image and painting
- * it to a <code>canvas</code>. Returns a Promise.
- *
- * <p/>Note: this will coerce the image to the desired content type, and it
- * will only paint the first frame of an animated GIF.
- *
- * @param {string} src
- * @param {string|undefined} type - the content type (optional, defaults to 'image/png')
- * @param {string|undefined} crossOrigin - for CORS-enabled images, set this to
- *                                         'Anonymous' to avoid "tainted canvas" errors
- * @param {number|undefined} quality - a number between 0 and 1 indicating image quality
- *                                     if the requested type is 'image/jpeg' or 'image/webp'
- * @returns {Promise} Promise that resolves with the data URL string
- */
-function imgSrcToDataURL(src, type, crossOrigin, quality) {
-  type = type || 'image/png';
-
-  return loadImage(src, crossOrigin).then(function (img) {
-    return imgToCanvas(img);
-  }).then(function (canvas) {
-    return canvas.toDataURL(type, quality);
-  });
-}
-
-/**
- * Convert a <code>canvas</code> to a <code>Blob</code>. Returns a Promise.
- * @param {string} canvas
- * @param {string|undefined} type - the content type (optional, defaults to 'image/png')
- * @param {number|undefined} quality - a number between 0 and 1 indicating image quality
- *                                     if the requested type is 'image/jpeg' or 'image/webp'
- * @returns {Promise} Promise that resolves with the <code>Blob</code>
- */
-function canvasToBlob(canvas, type, quality) {
-  return Promise.resolve().then(function () {
-    if (typeof canvas.toBlob === 'function') {
-      return new Promise(function (resolve) {
-        canvas.toBlob(resolve, type, quality);
-      });
-    }
-    return dataURLToBlob(canvas.toDataURL(type, quality));
-  });
-}
-
-/**
- * Convert an image's <code>src</code> URL to a <code>Blob</code> by loading the image and painting
- * it to a <code>canvas</code>. Returns a Promise.
- *
- * <p/>Note: this will coerce the image to the desired content type, and it
- * will only paint the first frame of an animated GIF.
- *
- * @param {string} src
- * @param {string|undefined} type - the content type (optional, defaults to 'image/png')
- * @param {string|undefined} crossOrigin - for CORS-enabled images, set this to
- *                                         'Anonymous' to avoid "tainted canvas" errors
- * @param {number|undefined} quality - a number between 0 and 1 indicating image quality
- *                                     if the requested type is 'image/jpeg' or 'image/webp'
- * @returns {Promise} Promise that resolves with the <code>Blob</code>
- */
-function imgSrcToBlob(src, type, crossOrigin, quality) {
-  type = type || 'image/png';
-
-  return loadImage(src, crossOrigin).then(function (img) {
-    return imgToCanvas(img);
-  }).then(function (canvas) {
-    return canvasToBlob(canvas, type, quality);
-  });
-}
-
-/**
- * Convert an <code>ArrayBuffer</code> to a <code>Blob</code>. Returns a Promise.
- *
- * @param {ArrayBuffer} buffer
- * @param {string|undefined} type - the content type (optional)
- * @returns {Promise} Promise that resolves with the <code>Blob</code>
- */
-function arrayBufferToBlob(buffer, type) {
-  return Promise.resolve().then(function () {
-    return createBlob([buffer], type);
-  });
-}
-
-/**
- * Convert a <code>Blob</code> to an <code>ArrayBuffer</code>. Returns a Promise.
- * @param {Blob} blob
- * @returns {Promise} Promise that resolves with the <code>ArrayBuffer</code>
- */
-function blobToArrayBuffer(blob) {
-  return new Promise(function (resolve, reject) {
-    var reader = new FileReader();
-    reader.onloadend = function (e) {
-      var result = e.target.result || new ArrayBuffer(0);
-      resolve(result);
-    };
-    reader.onerror = reject;
-    reader.readAsArrayBuffer(blob);
-  });
-}
-
-module.exports = {
-  createBlob         : createBlob,
-  createObjectURL    : createObjectURL,
-  revokeObjectURL    : revokeObjectURL,
-  imgSrcToBlob       : imgSrcToBlob,
-  imgSrcToDataURL    : imgSrcToDataURL,
-  canvasToBlob       : canvasToBlob,
-  dataURLToBlob      : dataURLToBlob,
-  blobToDataURL      : blobToDataURL,
-  blobToBase64String : blobToBase64String,
-  base64StringToBlob : base64StringToBlob,
-  binaryStringToBlob : binaryStringToBlob,
-  blobToBinaryString : blobToBinaryString,
-  arrayBufferToBlob  : arrayBufferToBlob,
-  blobToArrayBuffer  : blobToArrayBuffer
-};
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/package.json b/package.json index 3f9134a..606302c 100644 --- a/package.json +++ b/package.json @@ -25,9 +25,7 @@ "test-local": "zuul ./test/test.js --local 9000", "build": "mkdirp dist && npm run browserify && npm run min", "browserify": "browserify . -p bundle-collapser/plugin -s blobUtil | browserify-transform-cli es3ify | derequire > dist/blob-util.js", - "min": "uglifyjs dist/blob-util.js -mc > dist/blob-util.min.js", - "jsdoc2md": "jsdoc2md --heading-depth 3 ./lib/index.js > README.md", - "jsdoc": "jsdoc -d docs ./lib/index.js && mv -f docs/global.html docs/index.html" + "min": "uglifyjs dist/blob-util.js -mc > dist/blob-util.min.js" }, "dependencies": { "blob": "0.0.4", @@ -42,8 +40,6 @@ "derequire": "^2.0.0", "es3ify": "^0.1.3", "istanbul": "^0.2.7", - "jsdoc": "^3.3.0-alpha10", - "jsdoc-to-markdown": "^0.5.9", "jshint": "~2.3.0", "mkdirp": "^0.5.0", "mocha": "~1.18",