{"id":15602474,"url":"https://github.com/fiveisprime/find-file-sync","last_synced_at":"2025-07-19T15:32:35.660Z","repository":{"id":10729134,"uuid":"12982503","full_name":"fiveisprime/find-file-sync","owner":"fiveisprime","description":"Find a file synchronously within a directory.","archived":false,"fork":false,"pushed_at":"2015-09-01T20:34:32.000Z","size":200,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T14:47:48.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npm.im/find-file-sync","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/fiveisprime.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":"2013-09-20T19:52:34.000Z","updated_at":"2015-09-01T20:30:54.000Z","dependencies_parsed_at":"2022-09-03T06:25:21.095Z","dependency_job_id":null,"html_url":"https://github.com/fiveisprime/find-file-sync","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiveisprime%2Ffind-file-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiveisprime%2Ffind-file-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiveisprime%2Ffind-file-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiveisprime%2Ffind-file-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fiveisprime","download_url":"https://codeload.github.com/fiveisprime/find-file-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246188687,"owners_count":20737746,"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-10-03T02:41:38.869Z","updated_at":"2025-03-29T13:24:40.436Z","avatar_url":"https://github.com/fiveisprime.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"find-file-sync [![Build Status](https://travis-ci.org/fiveisprime/find-file-sync.svg?branch=master)](https://travis-ci.org/fiveisprime/find-file-sync) [![NPM version](https://badge.fury.io/js/find-file-sync.svg)](http://badge.fury.io/js/find-file-sync)\n==============\n\nFind a file recursively from top to bottom. Synchronously.\n\n# Example\n\nReturn the first file found in the specified directory with the specified name:\n\n``` js\nvar findFileSync = require('find-file-sync');\nvar file = findFileSync(process.cwd(), 'file.js');\n```\n\nFind a file in a directory ignoring specific directories:\n\n``` js\nvar findFileSync = require('find-file-sync');\n\n// Exclude an array of directories or a single directory.\nvar packageJson = findFileSync(process.cwd(), 'package.json', [ 'node_modules', '.git' ]);\nvar main = findFileSync(process.cwd(), 'index.js', 'node_modules');\n```\n\nFind files from an array of possibilities. This will return the first of any of\nthe files in the array:\n\n``` js\nvar findFileSync = require('find-file-sync');\n\n// Exclude an array of directories or a single directory.\nvar main = findFileSync(process.cwd(), ['index.js', 'app.js', 'server.js'], [ 'node_modules', '.git' ]);\n```\n\n## Notes\n\nDoes _not_ follow symbolic links.\n\n# License\n\nThe MIT License (MIT)\n\nCopyright (c) 2013 Matt Hernandez\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiveisprime%2Ffind-file-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiveisprime%2Ffind-file-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiveisprime%2Ffind-file-sync/lists"}