{"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","tarball":"http://registry-npm.ywwl.com/babel-flow-scope/download/babel-flow-scope-1.2.0.tgz","integrity":"sha512-vUV5SAr3Y3yUVJcjvTTJTZNutQRzZG2pVG9fbEmIwaucNJa9zzwXOhndEtlOXnW2GlyZv5gUsTvBX4LKcGPlxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDepJ5d0RSu/WpoQqNpSKN68bKd/RIiXcpZkSJK1QOvJQIhALtPcScbIWbG9dJrKOUaXdUV2NJTUaEr8UlWdim11Zhn"}],"size":2642,"noattachment":false,"key":"/babel-flow-scope/-/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":{},"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","publish_time":1496438341079,"_cnpm_publish_time":1496438341079,"dist-tags":{"latest":"1.2.1"}}