Skip to content

pascalduez/node-loader-flow

Repository files navigation

node-loader-flow

npm version CI Status

A Node.js loader for Flow. Strip Flow types with flow-remove-types before Node execution.

Installation

npm install node-loader-flow --save-dev
# or
pnpm add node-loader-flow --save-dev
# or
yarn add node-loader-flow --dev

Usage

Using the module hook:

node --import node-loader-flow/register file.js

Using the module loader (deprecated):

node --loader node-loader-flow file.js

Using Node test runner:

node --import node-loader-flow/register --test

Credits

Licence

node-loader-flow is unlicensed.