flow-bin ![Build Status](https://camo.githubusercontent.com/1b4ad56dd0a36ed7ae23b44d45b5ee7b2f2959197c9d9457f2ae60ab7f7fd839/68747470733a2f2f7472617669732d63692e6f72672f666c6f77747970652f666c6f772d62696e2e7376673f6272616e63683d6d6173746572)
Binary wrapper for Flow - A static type checker for JavaScript
OS X, Linux (64-bit) and Windows 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
make push VERSION=0.122.0
(use the same version as Flow)- Publish to npm:
make publish
(runnpm 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