{"id":14982030,"url":"https://github.com/gulpjs/findup-sync","last_synced_at":"2026-01-11T17:43:03.041Z","repository":{"id":5315310,"uuid":"6497669","full_name":"gulpjs/findup-sync","owner":"gulpjs","description":"Find the first file matching a given pattern in the current directory or the nearest ancestor directory.","archived":false,"fork":false,"pushed_at":"2023-12-29T20:10:49.000Z","size":57,"stargazers_count":98,"open_issues_count":1,"forks_count":28,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-04T16:02:41.027Z","etag":null,"topics":["findup","glob","micromatch","resolve"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mkaluza/Synapse-plus","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gulpjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["gulpjs","phated","yocontra"],"tidelift":"npm/gulp","open_collective":"gulpjs"}},"created_at":"2012-11-01T21:52:53.000Z","updated_at":"2025-03-03T13:43:57.000Z","dependencies_parsed_at":"2024-01-13T03:27:08.703Z","dependency_job_id":"bcca4034-4e78-4e56-ac9f-fb15b6e00111","html_url":"https://github.com/gulpjs/findup-sync","commit_stats":{"total_commits":57,"total_committers":15,"mean_commits":3.8,"dds":0.6140350877192983,"last_synced_commit":"3f1696d953ba17cb23ece4c3eb01a57e19ef84ad"},"previous_names":["js-cli/node-findup-sync"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Ffindup-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Ffindup-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Ffindup-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Ffindup-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gulpjs","download_url":"https://codeload.github.com/gulpjs/findup-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253805847,"owners_count":21967054,"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":["findup","glob","micromatch","resolve"],"created_at":"2024-09-24T14:04:40.289Z","updated_at":"2026-01-11T17:43:03.013Z","avatar_url":"https://github.com/gulpjs.png","language":"JavaScript","funding_links":["https://github.com/sponsors/gulpjs","https://github.com/sponsors/phated","https://github.com/sponsors/yocontra","https://tidelift.com/funding/github/npm/gulp","https://opencollective.com/gulpjs"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://gulpjs.com\"\u003e\n    \u003cimg height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# findup-sync\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]\n\nFind the first file matching a given pattern in the current directory or the nearest ancestor directory.\n\nMatching is done with [micromatch][micromatch], please report any matching related issues on that repository.\n\n## Usage\n\n```js\nvar findup = require('findup-sync');\nfindup(patternOrPatterns [, micromatchOptions]);\n\n// Start looking in the CWD.\nvar filepath1 = findup('{a,b}*.txt');\n\n// Start looking somewhere else, and ignore case (probably a good idea).\nvar filepath2 = findup('{a,b}*.txt', {cwd: '/some/path', nocase: true});\n```\n\n## API\n\n### `findup(patterns, [options])`\n\n- `patterns` **{String|Array}**: Glob pattern(s) or file path(s) to match against.\n- `options` **{Object}**: Options to pass to [micromatch]. Note that if you want to start in a different directory than the current working directory, specify a `cwd` property here.\n- `returns` **{String}**: Returns the first matching file.\n\n## License\n\nMIT\n\n\u003c!-- prettier-ignore-start --\u003e\n\n[downloads-image]: https://img.shields.io/npm/dm/findup-sync.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/findup-sync\n[npm-image]: https://img.shields.io/npm/v/findup-sync.svg?style=flat-square\n[ci-url]: https://github.com/gulpjs/findup-sync/actions?query=workflow:dev\n[ci-image]: https://img.shields.io/github/actions/workflow/status/gulpjs/findup-sync/dev.yml?branch=master\u0026style=flat-square\n[coveralls-url]: https://coveralls.io/r/gulpjs/findup-sync\n[coveralls-image]: https://img.shields.io/coveralls/gulpjs/findup-sync/master.svg\n\n\u003c!-- prettier-ignore-nd --\u003e\n\n\u003c!-- prettier-ignore-start --\u003e\n\n[micromatch]: http://github.com/micromatch/micromatch\n\n\u003c!-- prettier-ignore-nd --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgulpjs%2Ffindup-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgulpjs%2Ffindup-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgulpjs%2Ffindup-sync/lists"}