Skip to content
Binary wrapper for Flow - A static type checker for JavaScript
Branch: master
Clone or download
Latest commit b6fdac5 Mar 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor Update license to MIT Nov 21, 2017
.editorconfig
.gitattributes Updated binary to v0.30.0 and add Windows support Jul 29, 2016
.gitignore Flow v0.37.3 Dec 20, 2016
.travis.yml
Makefile Switch to bundling flow versions Sep 3, 2016
SHASUM256.txt
appveyor.yml
cli.js
index.js
index.js.flow
license
package.json
readme.md Update license to MIT Nov 21, 2017
test.js Update license to MIT Nov 21, 2017

readme.md

flow-bin Build Status

Binary wrapper for Flow - A static type checker for JavaScript

OS X, Linux (64-bit) and Windows binaries are currently provided.

CLI

$ npm install --global flow-bin
$ 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. Update the "version" in package.json to reflect the flow version to publish. (For now, flow-bin's version is also the version of the flow binary).
  2. Run make.
  • There should be 2 uncommitted changes at this point: SHASUM256.txt and package.json.
  1. Commit the changes with the message Updated binary to v0.30.0, with the correct version.
  2. Push/merge to master.
  3. Tag the update:
git checkout master &&
git pull &&
make test &&
git tag v$(node -p 'require("./package.json").version') &&
git push v$(node -p 'require("./package.json").version')
  1. Publish to npm.

Inspect a Release Before Publishing

npm pack
tar xf "flow-bin-$(node -p 'require("./package.json").version').tgz"
cd package
npm run verify
You can’t perform that action at this time.