Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@wmfs/statelint
Advanced tools
An npm package providing a validator for Amazon States Language JSON files. Usable from the command-line or as a library.
This package is derived from Amazon Web Services Labs' awslabs/statelint and is up to date with the changes announced on 29 November 2018.
npm install --global @wmfs/statelint
statelint state-machine-spec [state-machine-spec...]
There are no options. If you see no output, your state machine is fine.
npm install --save @wmfs/statelint
const stateLint = require('@wmfs/statelint')
const problems = stateLint.validate(json)
if (problems.length !== 0) {
console.log('Oh dear!')
problems.forEach(p => console.log(`ERROR: ${p}`)
}
json
is the state machine to validate as a JSON object.stateLint.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>
.
Bug reports and pull requests are welcome on GitHub. Please be aware of our Code of Conduct
Licensed under the terms of the MIT license. Copyright (c) 2018 West Midlands Fire Service
FAQs
Validator for Amazon States Language JSON files.
The npm package @wmfs/statelint receives a total of 714 weekly downloads. As such, @wmfs/statelint popularity was classified as not popular.
We found that @wmfs/statelint demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.