# @shexjs/eval-simple-1err

> Shape Expressions triple expression evaluator - simple regexp returning 1 error.

Latest version **1.0.0-alpha.33** (published 2026-09-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @shexjs/eval-simple-1err
pnpm add @shexjs/eval-simple-1err
yarn add @shexjs/eval-simple-1err
bun add @shexjs/eval-simple-1err
```

## Health

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

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.0-alpha.33 |
| Published | 2026-09-14 |
| First published | 2021-06-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=18 |
| Dependencies | 4 |
| Unpacked size | 119.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 62 |
| Author | Eric Prud'hommeaux |
| Maintainers | ericprud, justinwb |
| Keywords | shex, shape expressions, rdf, query, parser |

## Links

- npm: https://www.npmjs.com/package/@shexjs/eval-simple-1err
- Repository: https://github.com/shexjs/shex.js
- Homepage: https://github.com/shexjs/shex.js#readme
- Issues: https://github.com/shexSpec/grammar/issues
- npm.io page: https://npm.io/package/@shexjs/eval-simple-1err

## Dependencies (4)

- [@rdfjs/types](https://npm.io/package/@rdfjs/types.md) ^2.0.1
- [@shexjs/term](https://npm.io/package/@shexjs/term.md) ^1.0.0-alpha.28
- [@types/shexj](https://npm.io/package/@types/shexj.md) ^2.1.7
- [@shexjs/eval-validator-api](https://npm.io/package/@shexjs/eval-validator-api.md) ^1.0.0-alpha.33

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.0-alpha.33 (latest) — 2026-09-14
- 1.0.0-alpha.31 — 2026-09-06
- 1.0.0-alpha.30 — 2026-08-31
- 1.0.0-alpha.29 — 2023-11-11
- 1.0.0-alpha.28 — 2023-11-05
- 1.0.0-alpha.27 — 2023-10-23
- 1.0.0-alpha.25 — 2023-03-21
- 1.0.0-alpha.24 — 2022-09-16
- 1.0.0-alpha.23 — 2022-08-23
- 1.0.0-alpha.22 — 2022-08-18
- 1.0.0-alpha.21 — 2022-03-08
- 1.0.0-alpha.20 — 2022-01-12
- 1.0.0-alpha.19 — 2021-12-22
- 1.0.0-alpha.15 — 2021-07-18
- 1.0.0-alpha.12 — 2021-06-03

## README

# @shexjs/eval-simple-1err

[![npm version](https://img.shields.io/npm/v/@shexjs/eval-simple-1err)](https://www.npmjs.com/package/@shexjs/eval-simple-1err)
[![CI](https://github.com/shexjs/shex.js/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/shexjs/shex.js/actions/workflows/ci.yml)

The fast matching engine for [`@shexjs/validator`](../shex-validator#readme): an implementation of [`@shexjs/eval-validator-api`](../eval-validator-api#readme) which stops at the first error.

A shape's triple expression is essentially a regular expression over the node's arcs. Where the default engine ([`@shexjs/eval-threaded-nerr`](../eval-threaded-nerr#readme)) enumerates every way a match could fail, this one reports the first miss and moves on — the right trade when conformance is the question and diagnosis isn't:

``` js
const {ShExValidator} = require("@shexjs/validator");
new ShExValidator(schema, db, {
  regexModule: require("@shexjs/eval-simple-1err").RegexpModule
});
```

From [`@shexjs/cli`](../shex-cli#readme), the same choice is `--regex-module @shexjs/eval-simple-1err`.

## Install

``` shell
npm install @shexjs/eval-simple-1err
```

---

`@shexjs/eval-simple-1err` is one of the [shex.js](https://github.com/shexjs/shex.js#readme) packages; installing [`shex`](https://www.npmjs.com/package/shex) pulls in the whole suite, and [its README](https://github.com/shexjs/shex.js/tree/main/packages/shex#the-shexjs-packages) maps them.

---
_Source: https://npm.io/package/@shexjs/eval-simple-1err · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
