canirequire

canirequireCommonJS › 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.

Latest
0.331.0 (Sep 4, 2026)
Module format
CommonJS
Last CommonJS version
0.331.0
TypeScript types
None
Node engines
>=0.10.0
Weekly downloads
300K
License
MIT

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.

Runtimerequire("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.4pendingpending

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).

VersionsFormatFirst published
0.277.1 – 0.331.0CommonJSJul 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

Similar popularity