Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-flow-strip-types

Package Overview
Dependencies
44
Maintainers
5
Versions
77
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @babel/plugin-transform-flow-strip-types

Strip flow type annotations from your output code.


Version published
Maintainers
5
Install size
15.3 kB
Created

Package description

What is @babel/plugin-transform-flow-strip-types?

The @babel/plugin-transform-flow-strip-types npm package is a plugin for Babel, a JavaScript compiler, that removes type annotations from Flow, a static type checker for JavaScript. This allows developers to write type-safe code during development and strip out these annotations for production builds, resulting in clean JavaScript that can be executed in environments that do not support Flow.

What are @babel/plugin-transform-flow-strip-types's main functionalities?

Stripping Flow Type Annotations

This feature removes Flow type annotations from your JavaScript files, converting typed code into plain JavaScript. The code sample shows a function with Flow types that are stripped out after transformation.

import { foo } from 'bar';
function square(n: number): number {
  return n * n;
}
// Transformed to:
import { foo } from 'bar';
function square(n) {
  return n * n;
}

Other packages similar to @babel/plugin-transform-flow-strip-types

Readme

Source

@babel/plugin-transform-flow-strip-types

Strip flow type annotations from your output code.

See our website @babel/plugin-transform-flow-strip-types for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-transform-flow-strip-types

or using yarn:

yarn add @babel/plugin-transform-flow-strip-types --dev

Keywords

FAQs

Last updated on 04 Aug 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc