# Is flow-bin ESM-only? Can you require() it?

> flow-bin@0.331.0 is a CommonJS package. CommonJS — require() works on every Node.js version we test.

Binary wrapper for Flow - A static type checker for JavaScript

Latest version 0.331.0, published Sep 4, 2026.

flow-bin ships CommonJS only. require("flow-bin") should work on every Node.js version the package supports (>=0.10.0); the runtime probe has not run for this version. 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.

## What to do

1. require("flow-bin") should work on every Node.js version the package supports (>=0.10.0); the runtime probe has not run for this version.
2. From ES modules use the default import: import flowBin from "flow-bin"; then destructure. Named imports only work when Node.js can statically detect the exports.
3. TypeScript: no types are available for flow-bin; declare the module yourself if you need them.

## Facts

- 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

## Runtime test results for flow-bin@0.331.0

Runtime probe pending for this version (install failed: PROBE_TIMEOUT). The facts above come from package.json.

## How to import flow-bin

ES modules:

```js
import flowBin from "flow-bin";
```

CommonJS:

```js
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") should work on every Node.js version the package supports (>=0.10.0); the runtime probe has not run for this version. 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

- [flow-bin on npm](https://www.npmjs.com/package/flow-bin)
- [Source repository](https://github.com/facebook/flow)
- [HTML version](https://canirequire.com/package/flow-bin/)
- [JSON version](https://canirequire.com/package/flow-bin.json)

---

For scripts and AI agents: any package is at https://canirequire.com/package/<name>/index.md (Markdown) or https://canirequire.com/package/<name>.json (JSON); the site index is https://canirequire.com/llms.txt. Fetch the URL directly; no search needed.
