# @wmfs/tymly-statelint

> Validator for Amazon States Language with Tymly Extensions JSON.

Latest version **1.64.1** (published 2026-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wmfs/tymly-statelint
pnpm add @wmfs/tymly-statelint
yarn add @wmfs/tymly-statelint
bun add @wmfs/tymly-statelint
```

Provides the command `tymly-statelint`.

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.64.1 |
| Published | 2026-08-13 |
| First published | 2018-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 86.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | West Midlands Fire Service |
| Maintainers | wmfsbot |
| Keywords | tymly, package, state machines, aws |

## Links

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

## Dependencies (5)

- [ajv](https://npm.io/package/ajv.md) 8.17.1
- [@wmfs/j2119](https://npm.io/package/@wmfs/j2119.md) 1.30.0
- [@wmfs/statelint](https://npm.io/package/@wmfs/statelint.md) 1.30.0
- [lodash.clonedeep](https://npm.io/package/lodash.clonedeep.md) 4.5.0
- [lodash.kebabcase](https://npm.io/package/lodash.kebabcase.md) 4.1.1

## Alternatives

- [monaco-yaml](https://npm.io/package/monaco-yaml.md) — 420.1K weekly downloads
- [@crewx/workflow](https://npm.io/package/@crewx/workflow.md) — 3.1K weekly downloads
- [yaml-cat](https://npm.io/package/yaml-cat.md) — 38 weekly downloads
- [nunjucks-in-yaml](https://npm.io/package/nunjucks-in-yaml.md) — 9 weekly downloads
- [shopify-symlinks](https://npm.io/package/shopify-symlinks.md) — 3 weekly downloads

## Recent versions

- 1.64.1 (latest) — 2026-08-13
- 1.64.0 — 2025-07-11
- 1.63.0 — 2025-07-10
- 1.62.0 — 2025-04-07
- 1.61.0 — 2025-04-01
- 1.60.0 — 2025-04-01
- 1.59.0 — 2025-03-31
- 1.58.0 — 2025-02-26
- 1.57.0 — 2025-02-25
- 1.56.0 — 2024-11-05
- 1.55.0 — 2024-11-04
- 1.54.0 — 2024-11-04
- 1.53.0 — 2024-11-04
- 1.52.0 — 2024-09-16
- 1.51.0 — 2023-07-26
- … 57 more at https://npm.io/package/@wmfs/tymly-statelint/versions

## README

# tymly-statelint
[![Tymly Package](https://img.shields.io/badge/tymly-package-blue.svg)](https://tymly.io/) [![npm (scoped)](https://img.shields.io/npm/v/@wmfs/tymly-statelint.svg)](https://www.npmjs.com/package/@wmfs/tymly-statelint) [![CircleCI](https://circleci.com/gh/wmfs/tymly-statelint.svg?style=svg)](https://circleci.com/gh/wmfs/tymly-statelint) [![codecov](https://codecov.io/gh/wmfs/tymly-statelint/branch/master/graph/badge.svg)](https://codecov.io/gh/wmfs/tymly-statelint) [![Dependabot badge](https://img.shields.io/badge/Dependabot-active-brightgreen.svg)](https://dependabot.com/) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/wmfs/tymly/blob/master/packages/statelint/LICENSE)

An npm package providing a validator for [Amazon States Language](https://states-language.net/spec.html) JSON with [Tymly](https://tymly.io/) extensions. Usable from the command-line or as a library.

It builds on [`statelint`](https://npmjs.com/package/@wmfs/statelint), a package for validating unextended Amazon States Language JSON.

## From the Command-line 

### Installation
```sh
npm install --global @wmfs/tymly-statelint
```

### Usage
```javascript
tymly-statelint state-machine-spec [state-machine-spec...]
```

There are no options. If you see no output, your state machine is fine.

## As a library 

### Installation
```sh
npm install --save @wmfs/tymly-statelint
```

### Usage
```javascript
const tymlyStateLint = require('@wmfs/statelint')

const problems = tymlyStateLint.validate(json)
if (problems.length !== 0) {
  console.log('Oh dear!')
  problems.forEach(p => console.log(`ERROR: ${p}`)
}
```

* `json` is the state machine to validate. It can be a JSON object, a filename, or a file descriptor.

`tymlyStatelint.validate` returns an array or error strings. If the array is empty, the state machine is fine. If not, then there's a problem! The validator is exhaustive, so it will report every problem it finds, not simply bail at the first thing. The error messages have the general form `<json-path to error> <description of error>`.


## Contributing

Bug reports and pull requests are welcome on GitHub. Please be aware of our [Code of Conduct](https://github.com/wmfs/tymly-statelint/blob/master/CODE_OF_CONDUCT.md)

## <a name="license"></a>License
Licensed under the terms of the [MIT license](https://github.com/wmfs/tymly-statelint/blob/master/LICENSE). Copyright (c) 2018 West Midlands Fire Service

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