Licence
MIT
Version
1.0.1
Deps
1
Size
4 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated
Careful: This package is no longer maintained and is only here for historic reasons. This means you should very likely not use it. You have been warned.
SubfoldersToo
Helper for taking the dataTransfer of a drop event and returning all files (including out of subfolders).
Install
npm install subfolders-too
For reference see the Browserify Handbook.
Usage
var subfoldersToo = require('subfolders-too')
// Bind the event and call the helper with the event
document.querySelector('#file-button').onDrop = function (event) {
subfoldersToo(event, function (files) {
// Files is now an array of files that were included in the drop event
console.log(files)
})
}