Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 404 Bytes

Readme.md

File metadata and controls

27 lines (18 loc) · 404 Bytes

normalized-upload

Normalized DataTransfer items for less upload item handling pain.

Installation

$ component install component/normalized-upload

Example

var normalize = require('normalized-upload');

document.onpaste = function(e){
  console.log(e);
  normalize(e, function(){
    e.items.forEach(function(item){
      console.log(item);
    });
  });
};

License

MIT