Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-rewrite-flowtyped-modules

Package Overview
Dependencies
Maintainers
5
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-rewrite-flowtyped-modules

A flow-syntax-aware module dependency rewriter gulp plugin.

  • 0.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
5
Weekly downloads
 
Created
Source

gulp-rewrite-flowtyped-modules

Rewrites modules dependencies

Implementation

Uses flow-parser to scan the potentially-flow-typed JavaScript AST file for import and require statements. It rewrites modules according to the options passed in.

This behaves very similar to the rewrite-module in babel-preset-fbjs from the fbjs package. The difference here is that it isn't done through Babel, but through flow-parser, and therefore keeps flow types intact.

Options

prefix: Module prefix to prepend to all rewritten modules. (defaults to './')

map: moduleMap to use for rewriting modules (empty by default)

flow: options to pass to flow-parser. See https://www.npmjs.com/package/flow-parser#options

Keywords

FAQs

Package last updated on 13 Apr 2022

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc