Socket
Socket
Sign inDemoInstall

babel-preset-flow

Package Overview
Dependencies
5
Maintainers
7
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-preset-flow

Babel preset for all Flow plugins.


Version published
Weekly downloads
428K
decreased by-2.52%
Maintainers
7
Install size
2.24 MB
Created
Weekly downloads
 

Readme

Source

babel-preset-flow

Babel preset for all Flow plugins.

This preset includes the following plugins:

  • transform-flow-strip-types

Example

In

function foo(one: any, two: number, three?): string {}

Out

function foo(one, two, three) {}

Installation

npm install --save-dev babel-preset-flow

Usage

.babelrc

{
  "presets": ["flow"]
}

Via CLI

babel --presets flow script.js

Via Node API

require("babel-core").transform("code", {
  presets: ["flow"]
});

Keywords

FAQs

Last updated on 14 Feb 2017

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