{"id":18653233,"url":"https://github.com/babel-utils/babel-flow-scope","last_synced_at":"2026-02-28T05:44:40.713Z","repository":{"id":57159016,"uuid":"93109058","full_name":"babel-utils/babel-flow-scope","owner":"babel-utils","description":"[Deprecated] Use babel-utils/babel-type-scopes for both Flow \u0026 TypeScript support","archived":false,"fork":false,"pushed_at":"2017-10-05T06:59:56.000Z","size":27,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-31T14:43:12.586Z","etag":null,"topics":["babel","babel-flow","babel-util","flow","flowtype"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/babel-utils.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":"2017-06-01T23:53:06.000Z","updated_at":"2021-07-24T09:06:51.000Z","dependencies_parsed_at":"2022-09-08T09:02:22.573Z","dependency_job_id":null,"html_url":"https://github.com/babel-utils/babel-flow-scope","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/babel-utils%2Fbabel-flow-scope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel-utils%2Fbabel-flow-scope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel-utils%2Fbabel-flow-scope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel-utils%2Fbabel-flow-scope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/babel-utils","download_url":"https://codeload.github.com/babel-utils/babel-flow-scope/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223472765,"owners_count":17150745,"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":["babel","babel-flow","babel-util","flow","flowtype"],"created_at":"2024-11-07T07:10:40.132Z","updated_at":"2026-02-28T05:44:35.691Z","avatar_url":"https://github.com/babel-utils.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-flow-scope\n\n\u003e Collect [Flow](https://flow.org/) bindings in a given scope\n\n```js\nimport type foo from \"mod\";\ntype baz\u003cbar\u003e = {};\n```\n\n```js\nimport {getFlowBindingsInScope} from 'babel-flow-scope';\n\ngetFlowBindingsInScope(path);\n// {\n//   foo: {\n//     kind: 'import',\n//     path: (Identifier)\n//   },\n//   bar: {\n//     kind: 'param',\n//     path: (TypeParameter)\n//   },\n//   baz: {\n//     kind: 'declaration',\n//     path: (Identifier)\n//   }\n// }\n```\n\n## API\n\n#### `getFlowScopePath(path)`\n\nFind the closest path to a Flow scope.\n\n#### `getFlowBindingsInScope(path)`\n\nRetreive all the Flow bindings in the local Flow scope.\n\n#### `findFlowBinding(path, name)`\n\nSearch for a binding in the current scope and parent scopes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabel-utils%2Fbabel-flow-scope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbabel-utils%2Fbabel-flow-scope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabel-utils%2Fbabel-flow-scope/lists"}