{"id":17042585,"url":"https://github.com/whoisarpit/js-pick-file","last_synced_at":"2026-04-29T11:02:58.667Z","repository":{"id":47701235,"uuid":"213628262","full_name":"whoisarpit/js-pick-file","owner":"whoisarpit","description":"A bare-bones vanilla library to open file picker programatically.","archived":false,"fork":false,"pushed_at":"2025-01-21T06:20:32.000Z","size":788,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T05:35:34.430Z","etag":null,"topics":["file-input","file-picker","filepicker","javascript","vanilla-javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whoisarpit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-08T11:49:58.000Z","updated_at":"2022-07-21T06:49:55.000Z","dependencies_parsed_at":"2025-04-02T12:00:41.488Z","dependency_job_id":"4c19c229-5c65-41c6-987a-6f1b0b1bf8c9","html_url":"https://github.com/whoisarpit/js-pick-file","commit_stats":null,"previous_names":["arpit9295/js-file-picker","arpit9295/js-pick-file"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/whoisarpit/js-pick-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whoisarpit%2Fjs-pick-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whoisarpit%2Fjs-pick-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whoisarpit%2Fjs-pick-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whoisarpit%2Fjs-pick-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whoisarpit","download_url":"https://codeload.github.com/whoisarpit/js-pick-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whoisarpit%2Fjs-pick-file/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32422533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file-input","file-picker","filepicker","javascript","vanilla-javascript"],"created_at":"2024-10-14T09:17:50.781Z","updated_at":"2026-04-29T11:02:58.640Z","avatar_url":"https://github.com/whoisarpit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JS Pick File\n\n[![npm](https://img.shields.io/npm/v/js-pick-file.svg)](https://www.npmjs.com/package/js-pick-file)\n\nA bare-bones vanilla library to open file picker programatically.\n\n[Demo](https://codepen.io/arpit9295/full/QWWOogW)\n\n## Install\n\n```\nnpm install --save js-pick-file\n```\n\n## Usage -\n\n```js\nimport { pickFile } from 'js-pick-file';\n\nasync function uploadFile() {\n  options = {\n    accept: '.jpg, .jpeg, .png',\n    multiple: true,\n  }\n\n  const filePromise = pickFile(options);\n\n  try {\n    const fileList = await filePromise;\n    return fileList;\n  } catch () {\n    console.error('file picker was closed without input');\n  }\n}\n```\n\n`pickFile()` returns a promise that resolves to a [FileList](https://developer.mozilla.org/en-US/docs/Web/API/FileList)\n\nIf you see an input box flashing on your system or sudden whitespace issues, you might have to change the default styling for the file input.\n\n```js\nimport FilePicker from 'js-pick-file';\n\nFilePicker.config.cloakStyle = 'opacity: 0; position: absolute; bottom: 0; z-index: 0';\n\nconst filePromise = FilePicker.pick();\n```\n## Development setup\n\n```\nnpm install\n```\n\n### Compiles and minifies for production\n```\nnpm run build\n```\n\n### Lints and fixes files\n```\nnpm run lint\n```\n\n## License\n\n[MIT](https://github.com/arpit9295/js-pick-file/blob/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhoisarpit%2Fjs-pick-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhoisarpit%2Fjs-pick-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhoisarpit%2Fjs-pick-file/lists"}