{"id":18817853,"url":"https://github.com/vitorluizc/select-files","last_synced_at":"2025-04-13T23:25:12.381Z","repository":{"id":35103816,"uuid":"205986984","full_name":"VitorLuizC/select-files","owner":"VitorLuizC","description":"Virtually creates a file input element (\u003cinput type=\"file\" /\u003e), triggers it and returns selected files.","archived":false,"fork":false,"pushed_at":"2023-01-07T09:30:13.000Z","size":1350,"stargazers_count":14,"open_issues_count":20,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T06:35:47.090Z","etag":null,"topics":["dom","file","file-input","filelist","input-file","javascript","select","select-file","select-files","typescript","upload","upload-file","upload-files"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/VitorLuizC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-03T04:09:38.000Z","updated_at":"2024-12-12T15:55:20.000Z","dependencies_parsed_at":"2023-01-15T14:00:51.045Z","dependency_job_id":null,"html_url":"https://github.com/VitorLuizC/select-files","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"VitorLuizC/typescript-library-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitorLuizC%2Fselect-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitorLuizC%2Fselect-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitorLuizC%2Fselect-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitorLuizC%2Fselect-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VitorLuizC","download_url":"https://codeload.github.com/VitorLuizC/select-files/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248795347,"owners_count":21162754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["dom","file","file-input","filelist","input-file","javascript","select","select-file","select-files","typescript","upload","upload-file","upload-files"],"created_at":"2024-11-08T00:13:40.811Z","updated_at":"2025-04-13T23:25:12.344Z","avatar_url":"https://github.com/VitorLuizC.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# selectFiles\n\n[![Build Status](https://travis-ci.org/VitorLuizC/select-files.svg?branch=master)](https://travis-ci.org/VitorLuizC/select-files)\n[![License](https://badgen.net/github/license/VitorLuizC/select-files)](./LICENSE)\n[![Library minified size](https://badgen.net/bundlephobia/min/select-files)](https://bundlephobia.com/result?p=select-files)\n[![Library minified + gzipped size](https://badgen.net/bundlephobia/minzip/select-files)](https://bundlephobia.com/result?p=select-files)\n\nVirtually creates a file input element (`\u003cinput type=\"file\" /\u003e`), triggers it and returns selected files.\n\n```js\nimport selectFiles from 'select-files';\n\nselectFiles({ accept: 'image/*', capture: 'camera' }).then(files =\u003e {\n  // ...\n});\n```\n\n## Installation\n\nThis library is published in the NPM registry and can be installed using any compatible package manager.\n\n```sh\nnpm install select-files --save\n\n# For Yarn, use the command below.\nyarn add select-files\n```\n\n### Installation from CDN\n\nThis module has an UMD bundle available through JSDelivr and Unpkg CDNs.\n\n```html\n\u003c!-- For UNPKG use the code below. --\u003e\n\u003cscript src=\"https://unpkg.com/select-files\"\u003e\u003c/script\u003e\n\n\u003c!-- For JSDelivr use the code below. --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/select-files\"\u003e\u003c/script\u003e\n\n\u003cscript\u003e\n  // UMD module is exposed through the \"selectFiles\" global function.\n  selectFiles({ multiple: true }).then(files =\u003e {\n    console.log(files);\n  });\n\u003c/script\u003e\n```\n\n## Documentation\n\n[Documentation generated from source files by Typedoc](./docs/README.md).\n\n## License\n\nReleased under [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitorluizc%2Fselect-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitorluizc%2Fselect-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitorluizc%2Fselect-files/lists"}