{"library":"spectral-cli-bundle","title":"Spectral CLI Bundle","type":"library","description":"Bundled version of @stoplight/spectral-cli v1.0.8 providing a self-contained executable for API linting with Spectral, pre-packaged to avoid external dependencies. Requires Node.js >=20. Released under MIT license, updated infrequently (last release 2023). Differentiator: single-file distribution, no need for npm install or separate Spectral CLI setup.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install spectral-cli-bundle"],"cli":{"name":"spectral","version":null}},"imports":["import { spectral } from 'spectral-cli-bundle'","import { Spectral } from 'spectral-cli-bundle'"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/silverwind/spectral-cli-bundle","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/spectral-cli-bundle","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import { spectral } from 'spectral-cli-bundle';\n\nconst result = await spectral.run({\n  args: ['lint', '--format', 'stylish', 'api.yaml'],\n  stdout: process.stdout,\n  stderr: process.stderr\n});\n\nconsole.log('Exit code:', result.exitCode);","lang":"typescript","description":"Lints an OpenAPI specification file using Spectral CLI bundle and prints the exit code.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}