FLOW-REMOVE-TYPES(1)
π flow-remove-types β bestie edition
okay so. you've got this JavaScript file, right, and it's got Flow types all up in it (you know, @flow, the whole thing), and you need to ship it somewhere that does NOT speak Flow. that's literally the entire job of flow-remove-types, a User Commands legend living in section 1 of your manual. it takes your typed-up JS and strips the types right out. slay. π¦
β¨ SYNOPSIS β¨
flow-remove-types [options] [sources]
that's it. that's the whole vibe. options and then some sources. π
π₯ OPTIONS π₯
-h,--helpβ shows you this very message. the "help me help you" of flags. π«Ά-v,--versionβ prints out the current version offlow-remove-types. cute little flex.-i,--ignoreβ paths to ignore, written as a Regular Expression. like a little velvet rope for your files. π«-x,--extensionsβ file extensions to transform. tell it which ones get the treatment.-o,--out-fileβ the file path to write the transformed file to. one in, one out. π-d,--out-dirβ the directory path to write transformed files within. drop 'em all in one folder, queen.-a,--allβ transform all files, not just the ones with a@flowcomment. no invite needed, everybody's coming. β¨-p,--prettyβ removes flow types without replacing them with spaces, which produces prettier output, but may require using source maps. gorgeous but high-maintenance, iykyk. π-m,--sourcemapsβ also outputs source map files. you can optionally pass"inline"if that's the energy you're on.-q,--quietβ produces no output about successful progress. she's mysterious. she's silent. she's working. π€«
lowkey important: --pretty gives you the prettiest output but might need source maps to keep things trackable. don't skip that part bestie, it's not decoration. π
π EXAMPLES π
transform one file π
flow-remove-types --out-file output.js input.js
one file in, one file out. main character behavior.
transform many files π
flow-remove-types --out-dir out/ input1.js input2.js
several files, all landing in out/. the group chat is thriving.
transform files in a directory π
flow-remove-types --out-dir out/ indir/
point it at a whole directory, no cap.
transform files with source maps πΊοΈ
flow-remove-types --out-dir out/ indir/ --sourcemaps
transform files with inline source maps β¨
flow-remove-types --out-dir out/ indir/ --sourcemaps inline
same thing but the source maps are inline. inline. say it with me. inline. π
transform stdin πΈ
cat input.js | flow-remove-types > output.js
pipe it in, pipe it out. the classic glow-up pipeline. π¦
ngl, if you're piping from stdin and want the result somewhere, redirect it β>is your bestie here. and remember--prettymight want source maps. fr fr.
okay that's the whole page!! this gorgeous thing is flow-remove-types v1.2.3, dated November 2022, and yes it's the FLOW-REMOVE-TYPES(1) manual page β periodt. go strip some types, you're doing amazing sweetie ππ§β¨
π¦ where this page comes from
- debian bookworm: node-flow-remove-types 1.2.3-7 Β· BSD-3-Clause
- debian trixie: node-flow-remove-types 1.2.3-7 Β· BSD-3-Clause
- ubuntu noble: node-flow-remove-types 1.2.3-7 Β· BSD-3-Clause
- ubuntu questing: node-flow-remove-types 1.2.3-7
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms