{"_id":"file-picker-component","_rev":"26-7cf77d441bc5f04755f20d7f7eed620b","name":"file-picker-component","description":"File picker component","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.1":{"name":"file-picker-component","version":"0.0.1","description":"File picker component","author":{"name":"Damian Suarez","email":"rdsuarez@gmail.com"},"twitter":"@retrofox","keywords":["file","file-picker","picker","component"],"dependencies":{},"devDependencies":{},"main":"index","component":{"scripts":{"file-picker":"index.js"}},"_npmUser":{"name":"retrofox","email":"rdsuarez@gmail.com"},"_id":"file-picker-component@0.0.1","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.8.7","_defaultsLoaded":true,"dist":{"shasum":"fca8ae25afb85bf3cbd7ddfa5310fc8dcd16fc3f","tarball":"https://registry.npmjs.org/file-picker-component/-/file-picker-component-0.0.1.tgz","integrity":"sha512-2+v2coPawdxNN6oJq0zq5mftBTLZ2vyKERoOFAqhmw6oPwDokStqeKCrVFQ7SluhPjo5b5o4cR6jCfC33BQTrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUkZfO4KMtUPhD/E+YdiBU/chc7v8ODZLHOE7nnpdhMQIhAJ6JjXXI16MMfkz83oeiQlHnaEK07Wu2NV8JfQNn7FKN"}]},"maintainers":[{"name":"retrofox","email":"rdsuarez@gmail.com"}]},"0.0.2":{"name":"file-picker-component","version":"0.0.2","description":"File picker component","author":{"name":"Damian Suarez","email":"rdsuarez@gmail.com"},"twitter":"@retrofox","keywords":["file","file-picker","picker","component"],"dependencies":{},"devDependencies":{},"main":"index","component":{"scripts":{"file-picker":"index.js"}},"_npmUser":{"name":"retrofox","email":"rdsuarez@gmail.com"},"_id":"file-picker-component@0.0.2","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.8.7","_defaultsLoaded":true,"dist":{"shasum":"317cd0a8e2eda7babd1738f8ca4bf868df42fbc8","tarball":"https://registry.npmjs.org/file-picker-component/-/file-picker-component-0.0.2.tgz","integrity":"sha512-Tg4Eus53kO74N16aU8t6aVsmreTibiAv01Wsud4EEEoebLWXfJJmmizxkWDrSfsNCEv1A89w4zailwE4/M8NZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBkfLjtGSDfPzOBrZ7u4lIA4/9Kdptr4ptzUPiTdm5rcAiEA6nxbAq7ZB+TpnM+RJPM0YF1KxcP1UlR0i5GKA7f5x+Q="}]},"maintainers":[{"name":"retrofox","email":"rdsuarez@gmail.com"}]},"0.0.3":{"name":"file-picker-component","version":"0.0.3","description":"File picker component","author":{"name":"Damian Suarez","email":"rdsuarez@gmail.com"},"twitter":"@retrofox","keywords":["file","file-picker","picker","component"],"dependencies":{},"devDependencies":{},"main":"index","component":{"scripts":{"file-picker":"index.js"}},"_npmUser":{"name":"retrofox","email":"rdsuarez@gmail.com"},"_id":"file-picker-component@0.0.3","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.8.7","_defaultsLoaded":true,"dist":{"shasum":"c86e6ce1a32f90dddd87846e995b37dc777483d9","tarball":"https://registry.npmjs.org/file-picker-component/-/file-picker-component-0.0.3.tgz","integrity":"sha512-Vo06dqndxLEWCdQ3vszB/tOK0fIN31y5DhcHZo2UOXK9yZWFU6DRoMQX2rItyB4M87Ynx6D2qTOnRHBs7dJBxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCihWNYqSCGucuOF3zNAX2v5IHYXbuUDC4UL3ad4r+T9QIgMvH3/rQOnfBLYxqLVfBW9CwgcJOTlwwcdX+YuCcFPGk="}]},"maintainers":[{"name":"retrofox","email":"rdsuarez@gmail.com"}]},"0.0.4":{"name":"file-picker-component","version":"0.0.4","description":"File picker component","author":{"name":"Damian Suarez","email":"rdsuarez@gmail.com"},"twitter":"@retrofox","keywords":["file","file-picker","picker","component"],"dependencies":{},"devDependencies":{},"main":"index","component":{"scripts":{"file-picker":"index.js"}},"_npmUser":{"name":"retrofox","email":"rdsuarez@gmail.com"},"_id":"file-picker-component@0.0.4","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.8.7","_defaultsLoaded":true,"dist":{"shasum":"0570ba2f68b3fb4774087e3a7aa55a37746f7806","tarball":"https://registry.npmjs.org/file-picker-component/-/file-picker-component-0.0.4.tgz","integrity":"sha512-I1XjyMFBwpqzkcxPKctdOL90k86nzCACD0Yx4/fIYGDiCVGaX6XyMZp2v6yLRVQAAKDBO6WkjB5YfmyjeP51wQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYqgNgcNfeziVYhaNrTDhRcLphKq8wZaiEDPCv38SiCwIgMoOyY5UExPfPHvJWjx3O1EZH6OrneQPasQlsQ/P+V80="}]},"maintainers":[{"name":"retrofox","email":"rdsuarez@gmail.com"}]},"0.1.0":{"name":"file-picker-component","version":"0.1.0","description":"File picker component","author":{"name":"Damian Suarez","email":"rdsuarez@gmail.com"},"twitter":"@retrofox","keywords":["file","file-picker","picker","component"],"dependencies":{"event-component":"0.1.0"},"devDependencies":{},"main":"index","component":{"scripts":{"file-picker":"index.js"}},"_id":"file-picker-component@0.1.0","dist":{"shasum":"43a15856069f413f6c9c0b8e522350275a33adc2","tarball":"https://registry.npmjs.org/file-picker-component/-/file-picker-component-0.1.0.tgz","integrity":"sha512-PotMwkLap47pG8/NetkwBvPHdasSpMAhi5p2N5H5nCgL8oDO/P2QnCZdqQ6ClXh0cuXlzpAnj5MK8w/KenSTgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC58XeI8PIXR730Djd5VQPSyawzfTY02kTURKgATYwz1wIgXaTuk3L18x8xZXe2cgIFcgiWT8fkyrzdSOawSCeC8ws="}]},"_npmVersion":"1.1.71","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"retrofox","email":"rdsuarez@gmail.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"}]},"0.1.1":{"name":"file-picker-component","version":"0.1.1","description":"File picker component","author":{"name":"Damian Suarez","email":"rdsuarez@gmail.com"},"twitter":"@retrofox","keywords":["file","file-picker","picker","component"],"dependencies":{"event-component":"0.1.0"},"devDependencies":{},"main":"index","component":{"scripts":{"file-picker":"index.js"}},"_id":"file-picker-component@0.1.1","dist":{"shasum":"31559b931618a3190336d130357679b8ca093ef6","tarball":"https://registry.npmjs.org/file-picker-component/-/file-picker-component-0.1.1.tgz","integrity":"sha512-LpiLf2qmuShLe8t2E4KAJgEogd1Dra3ZMPOikNlOrE7Lt/YeDYreNvyQ9Ao6ss3aviPy5jKk3P2n0xTRXU+sfw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGKvswz936iKBmfeaRG2lSrmKdT3VC9hx6e5El1+KPUQIhAICSU8CwJGaJaubhFIjjKX1aPlXpTJbqc5FSYbaarrF5"}]},"_npmVersion":"1.1.71","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"retrofox","email":"rdsuarez@gmail.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"}]},"0.2.0":{"name":"file-picker-component","version":"0.2.0","description":"File picker component","author":{"name":"Damian Suarez","email":"rdsuarez@gmail.com"},"twitter":"@retrofox","keywords":["file","file-picker","picker","component"],"dependencies":{"event-component":"0.1.0"},"devDependencies":{},"main":"index","component":{"scripts":{"file-picker":"index.js"}},"_id":"file-picker-component@0.2.0","dist":{"shasum":"6e4e75d481a17a824a5a81f68d7c89b6086e4c61","tarball":"https://registry.npmjs.org/file-picker-component/-/file-picker-component-0.2.0.tgz","integrity":"sha512-yIP9UeQc3nCR6PsW7Gy5W8sdS96gb7MrZWFu4Cs8fTOaQu3jq3r3vUZoLN+pNiKmtxyfNWP6lAzpQiu34zw1DQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDQDuIpI39HwOVFfSjU9wfXdtA+FQ3AmWgRjZJBmuLsAiEAkL12goc+PFhcYdIenIKGctPCoaRqu5hzsM6nlXszdMU="}]},"_npmVersion":"1.1.71","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"retrofox","email":"rdsuarez@gmail.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"}]}},"readme":"# File Picker\n\n  Opens a file picker dialog upon being called. Doesn't need a DOM\n  element or pre-existing `<input type=\"file\">`.\n\n  __Note:__ This component inserts the element when required, so the body element needs to be loaded beforehand.\n  \n  __Note:__ For security reasons, `file-picker` must be triggered by an original DOM event (`click`, `touchstart`, `keyup`, etc.). It cannot be called `onload` or in a timeout.\n\n## Installation\n\n    $ component install component/file-picker\n\n## Usage\n\n```js\nvar filePicker = require('file-picker');\n\n// Upload a single file\n$('single-link').click(function() {\n  filePicker(function(files){});\n});\n\n// Upload multiple files (on supported web browsers)\n$('multiple-link').click(function() {\n  filePicker({ multiple: true }, function(files){});\n});\n\n// Upload a directory (on supported web browsers)\n$('directory-link').click(function() {\n  filePicker({ directory: true }, function(files){});\n});\n\n// Accept only image files or .psd files\n$('image-link').click(function() {\n  filePicker({ accept: [ 'image/*', '.psd' ] }, function(files){});\n});\n```\n\n## API\n\n### filePicker(opts, fn)\n\n  Valid options:\n\n  - `multiple` (Boolean) whether the user can select multiple files\n    if the UA supports it (defaults to `false`).\n  - `directory` (Boolean) whether the user can select a directory\n    if the UA supports it (defaults to `false`).\n  - `accept` (String) tell the browser to only allow selecting files\n    of this type. If several types, you may pass in an array of types. [Some examples](http://stackoverflow.com/questions/181214/file-input-accept-attribute-is-it-useful/10503561#10503561).\n\n  The callback `fn` will only be invoked if the underlying `<input>`\n  fires a `change` event. It will receive the following parameters:\n\n  - The `files` array from the `<input>` (not available on IE9).\n  - The change `event` object.\n  - The underlying `<input>` element reference (detached from DOM).\n\n## Browser support\n\n - Internet Explorer 9+\n - Firefox\n - Chrome\n - Opera\n - Safari\n - Mobile Safari\n - Android Browser\n\n## License\n\n  MIT\n","maintainers":[{"email":"mattmuelle@gmail.com","name":"mattmueller"},{"email":"secoif@gmail.com","name":"timoxley"},{"email":"jonathanrichardong@gmail.com","name":"jonathanong"},{"email":"jonathanrichardong@gmail.com","name":"jongleberry"},{"email":"nathan@tootallnate.net","name":"tootallnate"},{"email":"clint@anotherway.co.za","name":"clintwood"},{"email":"dnfagnan@gmail.com","name":"thehydroimpulse"},{"email":"me@stephenmathieson.com","name":"stephenmathieson"},{"email":"rdsuarez@gmail.com","name":"retrofox"}],"time":{"modified":"2022-06-18T00:37:42.357Z","created":"2013-05-14T22:11:41.005Z","0.0.1":"2013-05-14T22:11:46.457Z","0.0.2":"2013-05-15T19:02:21.787Z","0.0.3":"2013-06-24T16:20:56.538Z","0.0.4":"2013-06-25T23:26:40.866Z","0.1.0":"2013-06-29T00:57:40.347Z","0.1.1":"2013-06-29T01:16:57.354Z","0.2.0":"2013-07-19T23:48:31.715Z"},"author":{"name":"Damian Suarez","email":"rdsuarez@gmail.com"},"keywords":["file","file-picker","picker","component"],"readmeFilename":"Readme.md"}