{"_id":"babel-plugin-flow-comments","_rev":"23-9cff0d9775af90ae5e073a6e1ee1ff88","name":"babel-plugin-flow-comments","description":"Turn flow type annotations into comments","dist-tags":{"latest":"6.3.19","stable":"6.3.19"},"versions":{"1.0.1":{"name":"babel-plugin-flow-comments","version":"1.0.1","description":"Turn flow type annotations into comments","repository":{"type":"git","url":"git+https://github.com/babel-plugins/babel-plugin-flow-comments.git"},"license":"MIT","main":"lib/index.js","devDependencies":{"babel":"^5.6.0"},"scripts":{"build":"babel-plugin build","push":"babel-plugin publish","test":"babel-plugin test"},"keywords":["babel-plugin"],"gitHead":"ee95ffd6e38d0cac191edb1a4dc02ac694bf2cb1","bugs":{"url":"https://github.com/babel-plugins/babel-plugin-flow-comments/issues"},"homepage":"https://github.com/babel-plugins/babel-plugin-flow-comments#readme","_id":"babel-plugin-flow-comments@1.0.1","_shasum":"65d0e6de896394a7b1f7c4e0764435c107d923d5","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.0","_npmUser":{"name":"sebmck","email":"sebmck@gmail.com"},"maintainers":[{"name":"sebmck","email":"sebmck@gmail.com"}],"dist":{"shasum":"65d0e6de896394a7b1f7c4e0764435c107d923d5","tarball":"https://registry.npmjs.org/babel-plugin-flow-comments/-/babel-plugin-flow-comments-1.0.1.tgz","integrity":"sha512-/fI+sxtevveUdgUKkQQHJ/utyF+jcJu6k4cZnC5XjNpfiR2Sz+orqPUtrJa+GtuOp2Jgs18OdMuXtja3PC9Rlg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBxNcyhwBM/L+P+lDyTSxMiRtR2JBQbzbMAh80wXSLmQIhAIO+gARfRM/fdeWlwvevSx5nYwPDapAwqbHXSCvrpkdF"}]},"directories":{}},"1.0.3":{"name":"babel-plugin-flow-comments","version":"1.0.3","description":"Turn flow type annotations into comments","repository":{"type":"git","url":"git+https://github.com/babel-plugins/babel-plugin-flow-comments.git"},"license":"MIT","main":"lib/index.js","devDependencies":{"babel":"^5.6.0","mocha":"^2.2.5"},"scripts":{"build":"babel-plugin build","push":"babel-plugin publish","test":"babel-plugin test","test-mocha":"mocha --compilers js:babel/register"},"keywords":["babel-plugin"],"gitHead":"0161c67103e777ab57acf56cf0c5284ce8b87dc1","bugs":{"url":"https://github.com/babel-plugins/babel-plugin-flow-comments/issues"},"homepage":"https://github.com/babel-plugins/babel-plugin-flow-comments#readme","_id":"babel-plugin-flow-comments@1.0.3","_shasum":"31c97d3af4d2ff3a33f00d9edf8c74b2809bb230","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.0","_npmUser":{"name":"sebmck","email":"sebmck@gmail.com"},"maintainers":[{"name":"sebmck","email":"sebmck@gmail.com"},{"name":"hzoo","email":"hi@henryzoo.com"}],"dist":{"shasum":"31c97d3af4d2ff3a33f00d9edf8c74b2809bb230","tarball":"https://registry.npmjs.org/babel-plugin-flow-comments/-/babel-plugin-flow-comments-1.0.3.tgz","integrity":"sha512-UDaH9M6euAGn8dP2sED0KENyzOkHgNwZmuptzey0uIhb611L6HbWXlKAG++3ExsANkEtJBTuv5SW8q+VTpwJBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICB/LvAnV/GJojN+c0jjb8Zdy9cBVs1bH74Uxlo3r5OsAiEA+Q78E/8icPxKOCiWV5AlQEbH70F/iEkOPr3D3B/s3NE="}]},"directories":{}},"1.0.4":{"name":"babel-plugin-flow-comments","version":"1.0.4","description":"Turn flow type annotations into comments","repository":{"type":"git","url":"git+https://github.com/babel-plugins/babel-plugin-flow-comments.git"},"license":"MIT","main":"lib/index.js","devDependencies":{"babel":"^5.6.0","mocha":"^2.2.5"},"scripts":{"build":"babel-plugin build","push":"babel-plugin publish","test":"babel-plugin test","test-mocha":"mocha --compilers js:babel/register"},"keywords":["babel-plugin"],"gitHead":"b1a40c7a510ebdac7806e01cdf3707ae71466af8","bugs":{"url":"https://github.com/babel-plugins/babel-plugin-flow-comments/issues"},"homepage":"https://github.com/babel-plugins/babel-plugin-flow-comments#readme","_id":"babel-plugin-flow-comments@1.0.4","_shasum":"2625462ed3bc818561882b63057eab8424a87f0e","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.10.38","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"2625462ed3bc818561882b63057eab8424a87f0e","tarball":"https://registry.npmjs.org/babel-plugin-flow-comments/-/babel-plugin-flow-comments-1.0.4.tgz","integrity":"sha512-g4qGW6D0OtDE+6aaT9ps53jakKWm1tTzXbA1i5pwi0FzbZsjPEaNaetRHEUWqknQfvSDvxJNWXqPfG1b6cPiyw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQnVvXWrCXlFH0mQDyV7IIv2lbBlyMgtqLtXkyXd3wqAIhAODMVdNt9zubRc8KZjxLI1AvlzMt5b5zxhXy6xRAeWPE"}]},"maintainers":[{"name":"sebmck","email":"sebmck@gmail.com"},{"name":"hzoo","email":"hi@henryzoo.com"}],"directories":{}},"1.0.5":{"name":"babel-plugin-flow-comments","version":"1.0.5","description":"Turn flow type annotations into comments","repository":{"type":"git","url":"git+https://github.com/babel-plugins/babel-plugin-flow-comments.git"},"license":"MIT","main":"lib/index.js","devDependencies":{"babel":"^5.6.0","mocha":"^2.2.5"},"scripts":{"build":"babel-plugin build","push":"babel-plugin publish","test":"babel-plugin test","test-mocha":"mocha --compilers js:babel/register"},"keywords":["babel-plugin"],"gitHead":"ffe2795873dd8802b01f04f479886b949016cdac","bugs":{"url":"https://github.com/babel-plugins/babel-plugin-flow-comments/issues"},"homepage":"https://github.com/babel-plugins/babel-plugin-flow-comments#readme","_id":"babel-plugin-flow-comments@1.0.5","_shasum":"a773f62b68f871ebf578010c335dbb3d81426d60","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"a773f62b68f871ebf578010c335dbb3d81426d60","tarball":"https://registry.npmjs.org/babel-plugin-flow-comments/-/babel-plugin-flow-comments-1.0.5.tgz","integrity":"sha512-/CVKc7dtD0gRM7q2MX2MC6b7r9dV197Pke4E4llM7XAqEO70AdnV/Lq+KLLtu0j0aQxAi/uHOJxxJFzGEu+evg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGSR4FMfJDdj/x0IsbI2ZHlE19FPKdFylJcF1dAeioDCAiEAoyfsnU4IqzpKeTZ/wYP4lTVLEj2a97sQOmdeLEPT7R0="}]},"maintainers":[{"name":"sebmck","email":"sebmck@gmail.com"},{"name":"hzoo","email":"hi@henryzoo.com"}],"directories":{}},"1.0.6":{"name":"babel-plugin-flow-comments","version":"1.0.6","description":"Turn flow type annotations into comments","repository":{"type":"git","url":"git+https://github.com/babel-plugins/babel-plugin-flow-comments.git"},"license":"MIT","main":"lib/index.js","devDependencies":{"babel":"^5.6.0","mocha":"^2.2.5"},"scripts":{"build":"babel-plugin build","push":"babel-plugin publish","test":"babel-plugin test","test-mocha":"mocha --compilers js:babel/register"},"keywords":["babel-plugin"],"gitHead":"b3f8e3514de353658b366aee3c89ae28a997f338","bugs":{"url":"https://github.com/babel-plugins/babel-plugin-flow-comments/issues"},"homepage":"https://github.com/babel-plugins/babel-plugin-flow-comments#readme","_id":"babel-plugin-flow-comments@1.0.6","_shasum":"6ed0dd9fc70a4aa32ca1d823597a29a4a6c510c2","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"6ed0dd9fc70a4aa32ca1d823597a29a4a6c510c2","tarball":"https://registry.npmjs.org/babel-plugin-flow-comments/-/babel-plugin-flow-comments-1.0.6.tgz","integrity":"sha512-YqMtqweoKUenLnGpa+NdpfMldFoyU5vEFAIK7rKpxtA0tDMUtm+8yJurJw8xamwkGrqlepXQjbeqNEnJVD389g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAxvBgWWox7WrS7jzh2BMpCMgHW+MPw8Cb56ZdmE6t6JAiEA6o1RBbDiLcjzk0C7Vk5AlL7HoEFJzPlfJBDmLyHxlF8="}]},"maintainers":[{"name":"sebmck","email":"sebmck@gmail.com"},{"name":"hzoo","email":"hi@henryzoo.com"}],"directories":{}},"1.0.7":{"name":"babel-plugin-flow-comments","version":"1.0.7","description":"Turn flow type annotations into comments","repository":{"type":"git","url":"https://github.com/babel-plugins/babel-plugin-flow-comments"},"license":"MIT","main":"lib/index.js","devDependencies":{"babel":"^5.6.0","mocha":"^2.2.5"},"scripts":{"build":"babel-plugin build","push":"babel-plugin publish","test":"babel-plugin test","test-mocha":"mocha --compilers js:babel/register"},"keywords":["babel-plugin"],"gitHead":"9b43e2f55ade23aa9f8c0a8243d93e4633260ea2","bugs":{"url":"https://github.com/babel-plugins/babel-plugin-flow-comments/issues"},"homepage":"https://github.com/babel-plugins/babel-plugin-flow-comments","_id":"babel-plugin-flow-comments@1.0.7","_shasum":"cda0c5bbe0b7ada5780551eff1c8352524099b7d","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.1","_npmUser":{"name":"sebmck","email":"sebmck@gmail.com"},"maintainers":[{"name":"sebmck","email":"sebmck@gmail.com"},{"name":"hzoo","email":"hi@henryzoo.com"}],"dist":{"shasum":"cda0c5bbe0b7ada5780551eff1c8352524099b7d","tarball":"https://registry.npmjs.org/babel-plugin-flow-comments/-/babel-plugin-flow-comments-1.0.7.tgz","integrity":"sha512-qWidGeIQRcHG/K4kEe2Jhyh2ZgmDE0Cw+aLW3cW4WuO6viXfrvKUAgPaWZ5odB2oUjfkE/17ysifLO28IeU7Yg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0dLkbxRa5Xi6xJzjCMvRXSxjAgrZXxf/h8dj95i3DTAIhAKG/6fKs7vmKCwL8ZS6r1U89G7d50bblWC32LrQfq/Vn"}]},"directories":{}},"1.0.9":{"name":"babel-plugin-flow-comments","version":"1.0.9","description":"Turn flow type annotations into comments","repository":{"type":"git","url":"https://github.com/babel-plugins/babel-plugin-flow-comments"},"license":"MIT","main":"lib/index.js","devDependencies":{"babel":"^5.6.0","mocha":"^2.2.5"},"scripts":{"build":"babel-plugin build","push":"babel-plugin publish","test":"babel-plugin test","test-mocha":"mocha --compilers js:babel/register"},"keywords":["babel-plugin"],"gitHead":"0a321f36c446904ed06410430f2d4ae896f2046d","bugs":{"url":"https://github.com/babel-plugins/babel-plugin-flow-comments/issues"},"homepage":"https://github.com/babel-plugins/babel-plugin-flow-comments","_id":"babel-plugin-flow-comments@1.0.9","_shasum":"d6cd6df0ef155bd8bc4c51bf713a7b2b54c080c4","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.1","_npmUser":{"name":"sebmck","email":"sebmck@gmail.com"},"maintainers":[{"name":"sebmck","email":"sebmck@gmail.com"},{"name":"hzoo","email":"hi@henryzoo.com"}],"dist":{"shasum":"d6cd6df0ef155bd8bc4c51bf713a7b2b54c080c4","tarball":"https://registry.npmjs.org/babel-plugin-flow-comments/-/babel-plugin-flow-comments-1.0.9.tgz","integrity":"sha512-eM6KUAd4KixVrn19N+fkx2Qd1lfSvTAgmSOFrDyWP59vQDjBAKG7Bu8CBr4I9Ehbcjz3vaCOuvYhpowtMwXolw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5OqfyaEfXYhUCFTBxsmxmy3xYdmWBsOefl58VwXxHkgIgNp4hwsN56ns34UDX/vAIM22Y8WQL19Ex+mWXWbqjoYc="}]},"directories":{}},"6.3.19":{"name":"babel-plugin-flow-comments","version":"6.3.19","description":"Turn flow type annotations into comments","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-flow-comments"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"dependencies":{"babel-runtime":"^5.0.0","babel-plugin-syntax-flow":"^6.3.13"},"devDependencies":{"babel-helper-plugin-test-runner":"^6.3.13"},"_id":"babel-plugin-flow-comments@6.3.19","scripts":{},"_shasum":"abe5c383258f23272742531cf60c379edf1f9046","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"amasad","email":"amjad.masad@gmail.com"},"maintainers":[{"name":"amasad","email":"amjad.masad@gmail.com"},{"name":"hzoo","email":"hi@henryzoo.com"},{"name":"jmm","email":"npm-public@jessemccarthy.net"},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"sebmck","email":"sebmck@gmail.com"},{"name":"thejameskyle","email":"me@thejameskyle.com"}],"dist":{"shasum":"abe5c383258f23272742531cf60c379edf1f9046","tarball":"https://registry.npmjs.org/babel-plugin-flow-comments/-/babel-plugin-flow-comments-6.3.19.tgz","integrity":"sha512-vDQHcCcRXp50WRrQSWkoad6xxraz/Oqcwwb9mppl7pkHBH1J6pwePsBzhBZaEjOBhk2hLkv1aZCg1kRWB/s79g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFzxcPegLztR/yXbPWxyPIQXikh+uzDIe9EYw7fyXCs/AiAicSEbISXK7Uu5qKc5NoGYu1YjAmM3lmH+JwcjMu0QHQ=="}]},"directories":{}}},"readme":"# babel-plugin-flow-comments\n\nTurn flow type annotations into comments.\n\nWhen using this plugin, you might want to also blacklist the `flow` transformer to preserve the `/* @flow */` directive.\n\nhttp://flowtype.org/blog/2015/02/20/Flow-Comments.html\n\n## Example\n\n**In**\n\n```javascript\nfunction foo(bar?) {}\nfunction foo2(bar?: string) {}\nfunction foo(x: number): string {}\ntype B = {\n  name: string;\n};\nexport type GraphQLFormattedError = number;\nimport type A, { B, C } from './types';\nimport typeof D, { E, F } from './types';\n```\n\n**Out**\n\n```javascript\n\"use strict\";\n\nfunction foo(bar /*:: ?*/) {}\nfunction foo2(bar /*:: ?: string*/) {}\nfunction foo(x /*: number*/) /*: string*/ {}\n/*:: type B = {\n  name: string;\n};*/\n/*:: export type GraphQLFormattedError = number;*/\n/*:: import type A, { B, C } from './types';*/\n/*:: import typeof D, { E, F } from './types';*/\n```\n\n## Installation\n\n```sh\n$ npm install babel-plugin-flow-comments\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"flow-comments\"],\n  \"blacklist\": [\"flow\"]\n}\n```\n\n### Via CLI\n\n```sh\n$ babel --plugins flow-comments --blacklist flow script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"babel-core\").transform(\"code\", {\n  plugins: [\"flow-comments\"],\n  blacklist: [\"flow\"]\n});\n```\n","maintainers":[{"email":"hi@henryzoo.com","name":"hzoo"},{"email":"loganfsmyth@gmail.com","name":"loganfsmyth"},{"email":"bng412@gmail.com","name":"existentialism"}],"time":{"modified":"2024-04-16T05:00:18.164Z","created":"2015-06-15T15:57:22.937Z","1.0.1":"2015-06-15T15:57:22.937Z","1.0.3":"2015-06-25T13:42:53.103Z","1.0.4":"2015-07-07T14:09:32.497Z","1.0.5":"2015-07-20T17:22:42.294Z","1.0.6":"2015-07-21T00:12:33.922Z","1.0.7":"2015-07-24T00:50:53.441Z","1.0.9":"2015-07-24T22:01:17.482Z","6.3.19":"2015-12-14T22:14:55.922Z"},"keywords":["babel-plugin"],"repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-flow-comments"},"license":"MIT","readmeFilename":"README.md","users":{"tedyhy":true}}