{"id":20962980,"url":"https://github.com/doesdev/file-paths-win32","last_synced_at":"2025-03-13T07:22:48.642Z","repository":{"id":57235619,"uuid":"71662368","full_name":"doesdev/file-paths-win32","owner":"doesdev","description":"Find paths of file(s) matching file name(s) on Windows","archived":false,"fork":false,"pushed_at":"2017-07-27T23:31:29.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-20T01:25:53.267Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doesdev.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":"2016-10-22T19:56:29.000Z","updated_at":"2016-10-22T19:57:05.000Z","dependencies_parsed_at":"2022-08-31T14:10:29.645Z","dependency_job_id":null,"html_url":"https://github.com/doesdev/file-paths-win32","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doesdev%2Ffile-paths-win32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doesdev%2Ffile-paths-win32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doesdev%2Ffile-paths-win32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doesdev%2Ffile-paths-win32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doesdev","download_url":"https://codeload.github.com/doesdev/file-paths-win32/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243359614,"owners_count":20278230,"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-19T02:39:44.438Z","updated_at":"2025-03-13T07:22:48.612Z","avatar_url":"https://github.com/doesdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# file-paths-win32 [![NPM version](https://badge.fury.io/js/file-paths-win32.svg)](https://npmjs.org/package/file-paths-win32)   [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)   [![Dependency Status](https://dependencyci.com/github/doesdev/file-paths-win32/badge)](https://dependencyci.com/github/doesdev/file-paths-win32)\n\n\u003e Find paths of files matching file name on Windows\n\n## install\n\n```sh\n$ npm install --save file-paths-win32\n```\n\n## api\n\n### returns\nPromise is returned with\n- **resolve** *(array) [Array of file paths, empty if not found]*\n- **reject** *(error)*\n\n### arguments\n- **filename(s)** *(string || array)*\n- **opts** *(object) optional*\n  - **hints** *(array - %HOMEPATH% unless file is EXE) [paths to search]*\n  - **full** *(boolean - false) [search all drives recursively]*\n\n## usage\n\n```js\nconst filePaths = require('file-paths-win32')\nlet fpOpts\n\n// search for single file in default paths\nfilePaths('someFile.txt').then(console.log).catch(console.error)\n\n// search for single EXE in default executable paths\nfilePaths('someApp.exe').then(console.log).catch(console.error)\n\n// search for array of files in default paths\nfilePaths(['someFile.txt', 'someApp.exe']).then(console.log).catch(console.error)\n\n// search for single file in specific paths\nfpOpts = {hints: ['C:\\\\some\\\\path', 'C:\\\\some\\\\other\\\\path\\\\']}\nfilePaths('someFile', fpOpts).then(console.log).catch(console.error)\n\n// search for single file in all drives recursively\nfpOpts = {full: true}\nfilePaths('someFile', fpOpts).then(console.log).catch(console.error)\n```\n\n## related\n- [file-paths-win32-cli](https://github.com/doesdev/file-paths-win32-cli) `Find file paths from the command line by their name`\n\n## License\n\nMIT © [Andrew Carpenter](https://github.com/doesdev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoesdev%2Ffile-paths-win32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoesdev%2Ffile-paths-win32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoesdev%2Ffile-paths-win32/lists"}