{"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","tarball":"http://registry-npm.ywwl.com/babel-flow-scope/download/babel-flow-scope-1.1.0.tgz","integrity":"sha512-TP9+GL22Qqv31gjsR81vBggY6jmB9mi9HviiYGdMJdK2fguYfStsSIcbEpTz4A4zFV0JGBZ6gWwk6w8TxuCFKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlu6cZDhHtJy20mfYtLm1Fb+n+fFiLjp/H9UpNn9trfQIgTWM35G7arJVu9pGBo0x6RTikrwSWZHxqr1ljGBTLByQ="}],"size":2431,"noattachment":false,"key":"/babel-flow-scope/-/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":{},"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":1496369834340,"_cnpm_publish_time":1496369834340,"dist-tags":{"latest":"1.2.1"}}