Socket
Book a DemoInstallSign in
Socket

fly-unflow

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fly-unflow

Removes Flow type annotations with Fly

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

fly-unflow

Removes Flow type annotations with Fly

Install

npm install --save-dev fly-unflow

Usage

exports.build = function * (fly) {
  yield fly.source('src/**/*.js').unflow({
    all: false,
    sourceMap: 'inline'
  }).target('lib');
};

API

.unflow(options)

options.all

Type: Boolean
Default: true

Transforms all files; not just those with a "@flow" comment.

options.pretty

Type: Boolean
Default: true

Remove whitespace where annotations used to be. See here for more info.

options.sourceMap

Type: String
Options: internal|external
Default: ''

Create an inline or an external sourcemap for each entry file. A sourceMappingURL comment is appended to each destination file.

If using external maps, a foo.js entry will also generate a foo.js.map file.

License

MIT © Luke Edwards

Keywords

fly

FAQs

Package last updated on 17 Apr 2017

Did you know?

Socket

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