{"_id":"babel-plugin-flow-comments","_rev":"324078","name":"babel-plugin-flow-comments","description":"Turn flow type annotations into comments","dist-tags":{"latest":"6.3.19","stable":"6.3.19"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"sebmck","email":"sebmck@gmail.com"}],"time":{"modified":"2021-06-04T01:52:26.000Z","created":"2015-06-15T15:57:22.937Z","6.3.19":"2015-12-14T22:14:55.922Z","1.0.9":"2015-07-24T22:01:17.482Z","1.0.7":"2015-07-24T00:50:53.441Z","1.0.6":"2015-07-21T00:12:33.922Z","1.0.5":"2015-07-20T17:22:42.294Z","1.0.4":"2015-07-07T14:09:32.497Z","1.0.3":"2015-06-25T13:42:53.103Z","1.0.1":"2015-06-15T15:57:22.937Z"},"users":{"tedyhy":true},"repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-flow-comments"},"versions":{"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":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"sebmck","email":"sebmck@gmail.com"}],"dist":{"shasum":"abe5c383258f23272742531cf60c379edf1f9046","size":2212,"noattachment":false,"key":"/babel-plugin-flow-comments/-/babel-plugin-flow-comments-6.3.19.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-flow-comments/download/babel-plugin-flow-comments-6.3.19.tgz"},"directories":{},"publish_time":1450131295922,"_cnpm_publish_time":1450131295922,"_hasShrinkwrap":false},"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":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"sebmck","email":"sebmck@gmail.com"}],"dist":{"shasum":"d6cd6df0ef155bd8bc4c51bf713a7b2b54c080c4","size":3011,"noattachment":false,"key":"/babel-plugin-flow-comments/-/babel-plugin-flow-comments-1.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-flow-comments/download/babel-plugin-flow-comments-1.0.9.tgz"},"directories":{},"publish_time":1437775277482,"_cnpm_publish_time":1437775277482,"_hasShrinkwrap":false},"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":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"sebmck","email":"sebmck@gmail.com"}],"dist":{"shasum":"cda0c5bbe0b7ada5780551eff1c8352524099b7d","size":2802,"noattachment":false,"key":"/babel-plugin-flow-comments/-/babel-plugin-flow-comments-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-flow-comments/download/babel-plugin-flow-comments-1.0.7.tgz"},"directories":{},"publish_time":1437699053441,"_cnpm_publish_time":1437699053441,"_hasShrinkwrap":false},"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","size":2467,"noattachment":false,"key":"/babel-plugin-flow-comments/-/babel-plugin-flow-comments-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-flow-comments/download/babel-plugin-flow-comments-1.0.6.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"sebmck","email":"sebmck@gmail.com"}],"directories":{},"publish_time":1437437553922,"_cnpm_publish_time":1437437553922,"_hasShrinkwrap":false},"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","size":2420,"noattachment":false,"key":"/babel-plugin-flow-comments/-/babel-plugin-flow-comments-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-flow-comments/download/babel-plugin-flow-comments-1.0.5.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"sebmck","email":"sebmck@gmail.com"}],"directories":{},"publish_time":1437412962294,"_cnpm_publish_time":1437412962294,"_hasShrinkwrap":false},"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","size":2103,"noattachment":false,"key":"/babel-plugin-flow-comments/-/babel-plugin-flow-comments-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-flow-comments/download/babel-plugin-flow-comments-1.0.4.tgz"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"sebmck","email":"sebmck@gmail.com"}],"directories":{},"publish_time":1436278172497,"_cnpm_publish_time":1436278172497,"_hasShrinkwrap":false},"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":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"sebmck","email":"sebmck@gmail.com"}],"dist":{"shasum":"31c97d3af4d2ff3a33f00d9edf8c74b2809bb230","size":1903,"noattachment":false,"key":"/babel-plugin-flow-comments/-/babel-plugin-flow-comments-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-flow-comments/download/babel-plugin-flow-comments-1.0.3.tgz"},"directories":{},"publish_time":1435239773103,"_cnpm_publish_time":1435239773103,"_hasShrinkwrap":false},"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":"danez","email":"daniel@tschinder.de"},{"name":"existentialism","email":""},{"name":"hzoo","email":""},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"sebmck","email":"sebmck@gmail.com"}],"dist":{"shasum":"65d0e6de896394a7b1f7c4e0764435c107d923d5","size":902,"noattachment":false,"key":"/babel-plugin-flow-comments/-/babel-plugin-flow-comments-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-flow-comments/download/babel-plugin-flow-comments-1.0.1.tgz"},"directories":{},"publish_time":1434383842937,"_cnpm_publish_time":1434383842937,"_hasShrinkwrap":false}},"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","_attachments":{},"license":"MIT"}