Skip to content
/ flow-bin Public

Binary wrapper for Flow - A static type checker for JavaScript

License

Notifications You must be signed in to change notification settings

flow/flow-bin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
Nov 21, 2017
Oct 23, 2015
Jul 29, 2016
Jun 17, 2021
Jun 17, 2021
Aug 11, 2019
Sep 29, 2023
Jul 3, 2024
Jul 3, 2024
Nov 21, 2017
Mar 18, 2021
Oct 5, 2016
Nov 21, 2017
Jul 3, 2024
Mar 18, 2022
Jan 6, 2023
Mar 18, 2021

Repository files navigation

flow-bin

Binary wrapper for Flow - A static type checker for JavaScript

macOS (x64), 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
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

  1. make push VERSION=0.122.0 (use the same version as Flow)
  2. Publish to npm: make publish (run npm adduser the first time to log in)

Inspect a Release Before Publishing

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