
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
babel-plugin-transform-flow-strip-types
Advanced tools
Strip flow type annotations from your output code.
Strip all flow type annotations and declarations from your output code.
In
function foo(one: any, two: number, three?): string {}
Out
function foo(one, two, three) {}
npm install --save-dev babel-plugin-transform-flow-strip-types
.babelrc (Recommended).babelrc
{
"plugins": ["transform-flow-strip-types"]
}
babel --plugins transform-flow-strip-types script.js
require("babel-core").transform("code", {
plugins: ["transform-flow-strip-types"]
});
The babel-plugin-transform-typescript package is a Babel plugin that removes TypeScript type annotations from your code. Similar to babel-plugin-transform-flow-strip-types, it allows you to write type-safe code using TypeScript and then strip out the type annotations during the compilation process. This plugin is specifically designed for TypeScript, whereas babel-plugin-transform-flow-strip-types is designed for Flow.
The babel-plugin-flow-react-proptypes package is a Babel plugin that converts Flow type annotations into React PropTypes. This allows you to use Flow for type checking during development and still have PropTypes for runtime type checking in React applications. Unlike babel-plugin-transform-flow-strip-types, which removes Flow types, this plugin transforms them into PropTypes.
FAQs
Strip flow type annotations from your output code.
The npm package babel-plugin-transform-flow-strip-types receives a total of 512,273 weekly downloads. As such, babel-plugin-transform-flow-strip-types popularity was classified as popular.
We found that babel-plugin-transform-flow-strip-types demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.