flow-bin
Version:
Binary wrapper for Flow - A static type checker for JavaScript
21 lines (17 loc) • 480 B
JavaScript
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
;
var spawn = require('child_process').spawn;
var input = process.argv.slice(2);
var bin = require('./');
if (bin !== null) {
spawn(bin, input, {stdio: 'inherit'})
.on('exit', process.exit);
} else {
throw new Error('Platform not supported.');
}