Fast, zero-configuration Flow type annotation removal tool for JavaScript with CLI and programmatic APIs
84
Create a Node.js command-line utility that transforms Flow-typed JavaScript files in a directory, with support for filtering files using ignore patterns.
Build a CLI tool that wraps the type removal functionality and adds custom path filtering logic.
The utility should accept the following arguments:
<source-dir>: Source directory containing Flow-typed files<output-dir>: Destination directory for transformed files--ignore <pattern>: Optional regex pattern to exclude files (e.g., "test|spec").js files from the source directory recursivelysrc/app.js, src/test/app.test.js, and src/utils.js, using --ignore "test" transforms only src/app.js and src/utils.js @test@generates
Provides Flow type annotation removal functionality.
Install with Tessl CLI
npx tessl i tessl/npm-flow-remove-typesevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10