component-normalized-upload

0.0.6 • Public • Published

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

/component-normalized-upload/

    Package Sidebar

    Install

    npm i component-normalized-upload

    Weekly Downloads

    19

    Version

    0.0.6

    License

    MIT

    Last publish

    Collaborators

    • defunctzombie
    • dfcreative
    • tootallnate
    • tjholowaychuk
    • rauchg
    • retrofox
    • coreh
    • forbeslindesay
    • kelonye
    • mattmueller
    • yields
    • anthonyshort
    • ianstormtaylor
    • cristiandouce
    • swatinem
    • stagas
    • amasad
    • juliangruber
    • calvinfo
    • dominicbarnes
    • jongleberry
    • timoxley
    • jonathanong
    • queckezz
    • nami-doc
    • clintwood
    • thehydroimpulse
    • stephenmathieson
    • trevorgerhardt
    • timaschew
    • hughsk