Back to Flow

flow-bin

packages/flow-bin/readme.md

0.331.0949 B
Original Source

flow-bin

Binary wrapper for Flow - A static type checker for JavaScript

macOS (arm64), Linux (x64, arm64) and Windows (x64) binaries are currently provided.

CLI

For Yarn:

$ yarn add --dev flow-bin
$ yarn run flow --help

For npm, add { "scripts": { "flow": "flow" } } in package.json and run:

$ npm install --save-dev flow-bin
$ npm run flow --help

API

$ npm install --save flow-bin
js
const execFile = require('child_process').execFile;
const flow = require('flow-bin');

execFile(flow, ['check'], (err, stdout) => {
  console.log(stdout);
});

License

flow-bin is MIT-licensed.

Releases

New Release

Releases are published by the Flow repository's release workflow.

Inspect a Release Before Publishing

sh
npm pack
tar xf "flow-bin-$(node -p 'require("./package.json").version').tgz"
cd package
npm run verify