1. flow-bin
Binary wrapper for Flow - A static type checker for JavaScript
flow-bin
Package: flow-bin
Created by: flowtype
Last modified: Wed, 24 Apr 2024 04:17:09 GMT
Version: 0.235.1
License: MIT
Downloads: 1,273,867
Repository: https://github.com/flowtype/flow-bin

Install

npm install flow-bin
yarn add flow-bin

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

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin