Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@wmfs/tymly-statelint
Advanced tools
An npm package providing a validator for Amazon States Language JSON with Tymly extensions. Usable from the command-line or as a library.
It builds on statelint
, a package for validating unextended Amazon States Language JSON.
npm install --global @wmfs/tymly-statelint
tymly-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/tymly-statelint
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>
.
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 with Tymly Extensions JSON.
The npm package @wmfs/tymly-statelint receives a total of 1,142 weekly downloads. As such, @wmfs/tymly-statelint popularity was classified as popular.
We found that @wmfs/tymly-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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.