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

> cypress@16.0.0 ships CommonJS and ESM builds. Dual package — require() works on every Node.js version we test; import works too.

Cypress is a next generation front end testing tool built for the modern web

Latest version 16.0.0, published Sep 1, 2026.

cypress publishes both a CommonJS entry and a native ESM entry (ESM added in 10.0.0). require("cypress") should work on every Node.js version the package supports (^22.0.0 || ^24.0.0 || >=26.0.0); the runtime probe has not run for this version. import "cypress" works alongside it.

## What to do

1. Nothing to change. require("cypress") should work on every Node.js version the package supports (^22.0.0 || ^24.0.0 || >=26.0.0); the runtime probe has not run for this version. import * as cypress from "cypress" works alongside it; use named imports for what the ESM entry exports.
2. TypeScript: types are bundled; install nothing extra.

## Facts

- Latest: 16.0.0 (Sep 1, 2026)
- Module format: Dual (CommonJS + ESM)
- Last CommonJS version: 16.0.0
- Native ESM since: 10.0.0
- TypeScript types: bundled
- Node engines: ^22.0.0 || ^24.0.0 || >=26.0.0
- Weekly downloads: 6.4M
- License: MIT

## Runtime test results for cypress@16.0.0

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

## How to import cypress

ES modules:

```js
import * as cypress from "cypress";
```

Namespace import shown because the ESM entry may have no default export; use named imports for what it exports.

CommonJS:

```js
const cypress = require("cypress");
```

## Module format by version

Derived from the type, main and exports fields of every stable release on npm (281 versions; the newest 60 shown).

| Versions | Format | First published |
|---|---|---|
| 13.13.3 – 16.0.0 | Dual (CommonJS + ESM) | Aug 14, 2024 |

## Frequently asked

**Is cypress ESM-only?**

cypress@16.0.0 ships CommonJS and ESM builds. cypress publishes both a CommonJS entry and a native ESM entry (ESM added in 10.0.0). require("cypress") should work on every Node.js version the package supports (^22.0.0 || ^24.0.0 || >=26.0.0); the runtime probe has not run for this version. import "cypress" works alongside it.

**Can I require cypress?**

Yes. cypress ships a CommonJS entry alongside the native ESM entry. require("cypress") should work on every Node.js version the package supports (^22.0.0 || ^24.0.0 || >=26.0.0); the runtime probe has not run for this version.

**Does cypress ship TypeScript types?**

Yes. cypress bundles its own type declarations; no @types package is needed.

## Links

- [cypress on npm](https://www.npmjs.com/package/cypress)
- [Source repository](https://github.com/cypress-io/cypress)
- [HTML version](https://canirequire.com/package/cypress/)
- [JSON version](https://canirequire.com/package/cypress.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.
