Package Exports
- flow-bin
- flow-bin/cli
- flow-bin/cli.js
- flow-bin/index.js
- flow-bin/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (flow-bin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 --helpFor npm, add { "scripts": { "flow": "flow" } } in package.json and run:
$ npm install --save-dev flow-bin
$ npm run flow --helpAPI
$ npm install --save flow-binconst 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 adduserthe 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