babel-plugin-reflow
JSON →Babel plugin to transpile Flow type annotations to TypeScript, with a CLI wrapper for batch conversion. Current stable version 0.5.7 (latest). Development appears slow but active with periodic releases. Key differentiators: focuses on pretty output via Prettier, handles comments well, proven on real projects (27k and 41k LOC). Compared to alternatives like flow-to-ts or babel-plugin-flow-to-typescript, Reflow offers a CLI and better output formatting. Supports base types, generics, utility types, nullable types, optional chaining, nullish coalescing, and class decorator replacement. Limitation: empty Flow object types become `object` not `{}` since v0.5.
Traffic · last 30 days ↓54% vs prev 7d
total hits 30
actors 8 distinct systems
last hit 1d ago AhrefsBot
top countries 🇺🇸 United States · 🇩🇪 Germany · VN · 🇨🇦 Canada · 🇸🇬 Singapore
API endpoints
full doc /v1/registry/babel-plugin-reflow
compatibility /v1/registry/babel-plugin-reflow/compatibility