{"id":18314308,"url":"https://github.com/agrublev/fc-filepick","last_synced_at":"2025-07-29T10:37:09.624Z","repository":{"id":42290694,"uuid":"244579686","full_name":"agrublev/fc-filepick","owner":"agrublev","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-22T03:22:12.000Z","size":1246,"stargazers_count":4,"open_issues_count":14,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-24T07:53:56.320Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agrublev.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-03-03T08:20:42.000Z","updated_at":"2023-01-15T12:26:21.000Z","dependencies_parsed_at":"2025-05-14T11:30:30.595Z","dependency_job_id":null,"html_url":"https://github.com/agrublev/fc-filepick","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agrublev/fc-filepick","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrublev%2Ffc-filepick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrublev%2Ffc-filepick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrublev%2Ffc-filepick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrublev%2Ffc-filepick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agrublev","download_url":"https://codeload.github.com/agrublev/fc-filepick/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrublev%2Ffc-filepick/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260443671,"owners_count":23010061,"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":[],"created_at":"2024-11-05T16:31:40.205Z","updated_at":"2025-06-17T21:37:09.187Z","avatar_url":"https://github.com/agrublev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n**Table of Contents**  *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n- [FC-Filepick](#fc-filepick)\n  - [Installation](#installation)\n  - [Methods](#methods)\n  - [Options](#options)\n    - [Example](#example)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n# FC-Filepick\n\nA file picker made for node cli applications using enquirer.\n\n\u003cimg width=\"479\" alt=\"image\" src=\"https://user-images.githubusercontent.com/801433/206047869-1e6a846b-6167-427e-80e7-d0e9ec14b7b0.png\"\u003e\n\n\n## Installation\n\n```bash\nyarn add -D fc-filepick\n```\n\n## Methods\n\nSelect a directory\n\n```js\nconst fcFilepicker = require(\"fc-filepick\");\n\n(async () =\u003e {\n  let dirLocation = await fcFilepicker();\n  console.info(\"Location of folder: \", dirLocation);\n})();\n```\n\nSelect a file\n\n```js\nconst fcFilepicker = require(\"fc-filepick\");\n\n(async () =\u003e {\n  let fileLocation = await fcFilepicker({ type: \"file\" });\n  console.info(\"Location of file: \", fileLocation);\n})();\n```\n\n## Options\n\n- **question** (string) Show the question for select the file. _Default: 'Choose a file/folder'_.\n- **type** (string) **folder/file** select a folder or file . _Default: 'folder'_.\n- **folder** (string) Starting location of search. _Default: '.'_.\n\n### Example\n\n```javascript\nconst fcFilepicker = require(\"fc-filepick\");\n\nfcFilepicker({ type: \"file\" }).then(location =\u003e {\n  console.info(\"Location of file: \", fileLocation);\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrublev%2Ffc-filepick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagrublev%2Ffc-filepick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrublev%2Ffc-filepick/lists"}