{"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","tarball":"http://registry-npm.ywwl.com/babel-flow-scope/download/babel-flow-scope-1.0.0.tgz","integrity":"sha512-t8qw1I3z1Zz3orsvc+kROhfpUkDbEBKp2gEv8u+YAskEcyKkrTEKSB4+rYSg846Pkw4m0qJOwZti7Iyz8I9T0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDph/FP7yo10MRmPiuv5lurAuXOMYDZL0C04OWVSoEoPQIgHmbVN1vPinT50m/EBDkxrF2WZXTebazzfTFqI/oGIdg="}],"size":2260,"noattachment":false,"key":"/babel-flow-scope/-/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":{},"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":1496365539587,"_cnpm_publish_time":1496365539587,"dist-tags":{"latest":"1.2.1"}}