canirequire › CommonJS › flow-bin
Is flow-bin ESM-only? Can you require() it?
Binary wrapper for Flow - A static type checker for JavaScript
Latest version 0.331.0, published Sep 4, 2026. JSON
CommonJS CommonJS — require() works on every Node.js version
flow-bin ships CommonJS only. require("flow-bin") works everywhere. import "flow-bin" also works because Node.js and Bun can import CommonJS from ES modules, but only the default export is guaranteed; named imports depend on Node's static analysis of the module.
Does flow-bin@0.331.0 actually load? Runtime test results
Runtime probe pending for this version. The values below are what package.json declares; they are refreshed once the probe runs.
| Runtime | require("flow-bin") | import "flow-bin" |
|---|---|---|
| Node.js 18 | ✓ expected | ✓ expected |
| Node.js 20 | ✓ expected | ✓ expected |
| Node.js 22 | ✓ expected | ✓ expected |
| Node.js 24 | ✓ expected | ✓ expected |
| Node.js 26 | ✓ expected | ✓ expected |
| Bun 1.4 | pending | pending |
Install failed in our sandbox: PROBE_TIMEOUT The rows above show what package.json declares.
How to import flow-bin
ES modules (import)
import flowBin from "flow-bin";Named imports from a CommonJS package only work when Node.js can statically detect them. If a named import fails, use the default import and destructure.
CommonJS (require)
const flowBin = require("flow-bin");Module format by version
Derived from the type, main and exports fields of every stable release on npm (461 versions; the newest 60 shown).
| Versions | Format | First published |
|---|---|---|
| 0.277.1 – 0.331.0 | CommonJS | Jul 24, 2025 |
Frequently asked
Is flow-bin ESM-only?
flow-bin@0.331.0 is a CommonJS package. flow-bin ships CommonJS only. require("flow-bin") works everywhere. import "flow-bin" also works because Node.js and Bun can import CommonJS from ES modules, but only the default export is guaranteed; named imports depend on Node's static analysis of the module.
Can I import flow-bin with ES module syntax?
Yes. import flowBin from "flow-bin" works in Node.js and Bun because they support importing CommonJS modules. Named imports work only when Node.js can statically detect the exports.
Does flow-bin ship TypeScript types?
No. flow-bin ships no type declarations and there is no @types package for it.
Links
Other commonjs packages
- debug 4.4.3CommonJS
- semver 7.8.5CommonJS
- ms 2.1.3CommonJS
- picomatch 4.0.7CommonJS
- ajv 8.20.0CommonJS
- source-map 0.8.0CommonJS
- react-is 19.2.8CommonJS
- readable-stream 4.7.0CommonJS
Similar popularity
- extract-text-webpack-plugin 3.0.2CommonJS
- babelify 10.0.0CommonJS
- gulp-uglify 3.0.2CommonJS
- gulp-babel 8.1.0CommonJS
- grunt-contrib-clean 2.0.1CommonJS
- conventional-changelog-cli 5.0.0ESM-only
- typechain 8.3.2CommonJS
- ember-source 7.2.0ESM-only