# @cucumber/cucumber-expressions

> Cucumber Expressions - a simpler alternative to Regular Expressions

Latest version **20.1.0** (published 2026-08-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cucumber/cucumber-expressions
pnpm add @cucumber/cucumber-expressions
yarn add @cucumber/cucumber-expressions
bun add @cucumber/cucumber-expressions
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 20.1.0 |
| Published | 2026-08-05 |
| First published | 2020-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 206.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 200 |
| Author | Cucumber Limited |
| Maintainers | cukebot |
| Keywords | cucumber, steps, regexp, regex |

## Links

- npm: https://www.npmjs.com/package/@cucumber/cucumber-expressions
- Repository: https://github.com/cucumber/cucumber-expressions
- Homepage: https://github.com/cucumber/cucumber-expressions#readme
- Issues: https://github.com/cucumber/cucumber-expressions/issues
- npm.io page: https://npm.io/package/@cucumber/cucumber-expressions

## Dependencies (1)

- [regexp-match-indices](https://npm.io/package/regexp-match-indices.md) 1.0.2

## Recent versions

- 20.1.0 (latest) — 2026-08-05
- 20.0.0 — 2026-06-11
- 19.0.1 — 2026-05-22
- 19.0.0 — 2026-01-25
- 18.1.0 — 2026-01-20
- 18.0.1 — 2024-10-31
- 18.0.0 — 2024-10-31
- 17.1.0 — 2024-03-21
- 17.0.2 — 2024-02-20
- 17.0.1 — 2023-11-24
- 17.0.0 — 2023-10-06
- 16.1.2 — 2023-01-17
- 16.1.1 — 2022-12-08
- 16.1.0 — 2022-11-28
- 16.0.1 — 2022-11-06
- … 29 more at https://npm.io/package/@cucumber/cucumber-expressions/versions

## README

[![test-go](https://github.com/cucumber/cucumber-expressions/actions/workflows/test-go.yaml/badge.svg)](https://github.com/cucumber/cucumber-expressions/actions/workflows/test-go.yaml)
[![test-java](https://github.com/cucumber/cucumber-expressions/actions/workflows/test-java.yaml/badge.svg)](https://github.com/cucumber/cucumber-expressions/actions/workflows/test-java.yaml)
[![test-javascript](https://github.com/cucumber/cucumber-expressions/actions/workflows/test-javascript.yaml/badge.svg)](https://github.com/cucumber/cucumber-expressions/actions/workflows/test-javascript.yaml)
[![test-python](https://github.com/cucumber/cucumber-expressions/actions/workflows/test-python.yaml/badge.svg)](https://github.com/cucumber/cucumber-expressions/actions/workflows/test-python.yaml)
[![test-ruby](https://github.com/cucumber/cucumber-expressions/actions/workflows/test-ruby.yaml/badge.svg)](https://github.com/cucumber/cucumber-expressions/actions/workflows/test-ruby.yaml)
[![test-dotnet](https://github.com/cucumber/cucumber-expressions/actions/workflows/test-dotnet.yaml/badge.svg)](https://github.com/cucumber/cucumber-expressions/actions/workflows/test-dotnet.yaml)

# Cucumber Expressions

Cucumber Expressions is an alternative to [Regular Expressions](https://en.wikipedia.org/wiki/Regular_expression)
with a more intuitive syntax.

## Documentation

Full documentation is at <https://cucumber.io/docs/cucumber/cucumber-expressions> including syntax, usage examples, and an interactive playground.

## Architecture

See [ARCHITECTURE.md](ARCHITECTURE.md)

## Acknowledgements

The Cucumber Expression syntax is inspired by similar expression syntaxes in
other BDD tools, such as [Turnip](https://github.com/jnicklas/turnip),
[Behat](https://github.com/Behat/Behat) and
[Behave](https://github.com/behave/behave).

Big thanks to Jonas Nicklas, Konstantin Kudryashov and Jens Engel for
implementing those libraries.

The [Tiny-Compiler-Parser tutorial](https://blog.klipse.tech/javascript/2017/02/08/tiny-compiler-parser.html)
by [Yehonathan Sharvit](https://github.com/viebel) inspired the design of the
Cucumber expression parser.

---
_Source: https://npm.io/package/@cucumber/cucumber-expressions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
