Socket
Book a DemoInstallSign in
Socket

@taskr/unflow

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@taskr/unflow

Removes Flow type annotations with Taskr

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

@taskr/unflow npm

Removes Flow type annotations with Taskr.

Install

$ npm install --save-dev @taskr/unflow

Usage

exports.build = function * (task) {
  yield task.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.

Support

Any issues or questions can be sent to the Taskr monorepo.

Please be sure to specify that you are using @taskr/unflow.

License

MIT © Luke Edwards

Keywords

taskr

FAQs

Package last updated on 27 Jul 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