{"_id":"babel-flow-scope","_rev":"3942784","name":"babel-flow-scope","description":"Collect Flow bindings in a given scope","dist-tags":{"latest":"1.2.1"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"time":{"modified":"2025-09-01T01:32:20.000Z","created":"2017-06-02T01:05:39.587Z","1.2.1":"2017-10-05T06:59:47.386Z","1.2.0":"2017-06-02T21:19:01.079Z","1.1.0":"2017-06-02T02:17:14.340Z","1.0.0":"2017-06-02T01:05:39.587Z"},"users":{},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"repository":{"type":"git","url":"git+https://github.com/babel-utils/babel-flow-scope.git"},"versions":{"1.2.1":{"name":"babel-flow-scope","version":"1.2.1","description":"Collect Flow bindings in a given scope","main":"index.js","repository":{"type":"git","url":"git+https://github.com/babel-utils/babel-flow-scope.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","files":[],"scripts":{"test":"jest"},"devDependencies":{"ast-pretty-print":"^1.3.0","babel-plugin-tester":"^3.0.0","babylon-options":"^1.1.2","flow-bin":"^0.47.0","jest":"^20.0.4"},"gitHead":"c2c3887e881e4b3e3fe471adcafee1277b4ffd12","bugs":{"url":"https://github.com/babel-utils/babel-flow-scope/issues"},"homepage":"https://github.com/babel-utils/babel-flow-scope#readme","_id":"babel-flow-scope@1.2.1","_shasum":"2b646211811a203ef0b11ebd219af29428b15990","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"2b646211811a203ef0b11ebd219af29428b15990","size":2698,"noattachment":false,"key":"/babel-flow-scope/-/babel-flow-scope-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-flow-scope/download/babel-flow-scope-1.2.1.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-flow-scope-1.2.1.tgz_1507186787264_0.10112229408696294"},"directories":{},"publish_time":1507186787386,"_hasShrinkwrap":false,"_cnpm_publish_time":1507186787386,"_cnpmcore_publish_time":"2021-12-16T16:27:38.332Z"},"1.2.0":{"name":"babel-flow-scope","version":"1.2.0","description":"Collect Flow bindings in a given scope","main":"index.js","repository":{"type":"git","url":"git+https://github.com/babel-utils/babel-flow-scope.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","files":[],"scripts":{"test":"jest"},"devDependencies":{"ast-pretty-print":"^1.3.0","babel-plugin-tester":"^3.0.0","babylon-options":"^1.1.2","flow-bin":"^0.47.0","jest":"^20.0.4"},"gitHead":"74f6958cee7b74d54c5345b335af7577c38de501","bugs":{"url":"https://github.com/babel-utils/babel-flow-scope/issues"},"homepage":"https://github.com/babel-utils/babel-flow-scope#readme","_id":"babel-flow-scope@1.2.0","_shasum":"2f4cc99495e87a38e0615e4e938db238e48f51a7","_from":".","_npmVersion":"4.2.0","_nodeVersion":"8.0.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"2f4cc99495e87a38e0615e4e938db238e48f51a7","size":2642,"noattachment":false,"key":"/babel-flow-scope/-/babel-flow-scope-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-flow-scope/download/babel-flow-scope-1.2.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-flow-scope-1.2.0.tgz_1496438341012_0.20034101326018572"},"directories":{},"publish_time":1496438341079,"_hasShrinkwrap":false,"_cnpm_publish_time":1496438341079,"_cnpmcore_publish_time":"2021-12-16T16:27:38.556Z"},"1.1.0":{"name":"babel-flow-scope","version":"1.1.0","description":"Collect Flow bindings in a given scope","main":"index.js","repository":{"type":"git","url":"git+https://github.com/babel-utils/babel-flow-scope.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","files":[],"scripts":{"test":"jest"},"devDependencies":{"ast-pretty-print":"^1.3.0","babel-plugin-tester":"^3.0.0","babylon-options":"^1.1.2","flow-bin":"^0.47.0","jest":"^20.0.4"},"gitHead":"301048340d2c8a06a2a58f888bc0c26dc72e6489","bugs":{"url":"https://github.com/babel-utils/babel-flow-scope/issues"},"homepage":"https://github.com/babel-utils/babel-flow-scope#readme","_id":"babel-flow-scope@1.1.0","_shasum":"3b671fa57bbf53287e70e7a5bf066285aa0fd854","_from":".","_npmVersion":"4.2.0","_nodeVersion":"8.0.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"3b671fa57bbf53287e70e7a5bf066285aa0fd854","size":2431,"noattachment":false,"key":"/babel-flow-scope/-/babel-flow-scope-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-flow-scope/download/babel-flow-scope-1.1.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-flow-scope-1.1.0.tgz_1496369834258_0.5025696363300085"},"directories":{},"publish_time":1496369834340,"_hasShrinkwrap":false,"_cnpm_publish_time":1496369834340,"_cnpmcore_publish_time":"2021-12-16T16:27:38.803Z"},"1.0.0":{"name":"babel-flow-scope","version":"1.0.0","description":"Collect Flow bindings in a given scope","main":"index.js","repository":{"type":"git","url":"git+https://github.com/babel-utils/babel-flow-scope.git"},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","files":[],"scripts":{"test":"jest"},"devDependencies":{"ast-pretty-print":"^1.3.0","babel-plugin-tester":"^3.0.0","babylon-options":"^1.1.2","flow-bin":"^0.47.0","jest":"^20.0.4"},"gitHead":"236f36f66bf47402616d0589e3e09243d8d0d088","bugs":{"url":"https://github.com/babel-utils/babel-flow-scope/issues"},"homepage":"https://github.com/babel-utils/babel-flow-scope#readme","_id":"babel-flow-scope@1.0.0","_shasum":"98a2d247aa25979c436217804c0f4ef2d5fbb633","_from":".","_npmVersion":"4.2.0","_nodeVersion":"8.0.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"98a2d247aa25979c436217804c0f4ef2d5fbb633","size":2260,"noattachment":false,"key":"/babel-flow-scope/-/babel-flow-scope-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-flow-scope/download/babel-flow-scope-1.0.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-flow-scope-1.0.0.tgz_1496365539448_0.08254258637316525"},"directories":{},"publish_time":1496365539587,"_hasShrinkwrap":false,"_cnpm_publish_time":1496365539587,"_cnpmcore_publish_time":"2021-12-16T16:27:39.014Z"}},"readme":"# babel-flow-scope\n\n> Collect [Flow](https://flow.org/) bindings in a given scope\n\n```js\nimport type foo from \"mod\";\ntype baz<bar> = {};\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","_attachments":{},"homepage":"https://github.com/babel-utils/babel-flow-scope#readme","bugs":{"url":"https://github.com/babel-utils/babel-flow-scope/issues"},"license":"MIT"}