Socket
Socket
Sign inDemoInstall

@stoplight/spectral-formatters

Package Overview
Dependencies
145
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @stoplight/spectral-formatters

This project exposes the available formatters from the CLI for users that perform custom validation through Javascript.


Version published
Weekly downloads
186K
decreased by-14.79%
Maintainers
1
Install size
15.7 MB
Created
Weekly downloads
 

Readme

Source

@stoplight/spectral-formatters

This project exposes the available formatters from the CLI for users that perform custom validation through Javascript.

Usage

import { pretty } from "@stoplight/spectral-formatters";

const spectral = new Spectral();
// ...
const result = await spectral.run(document);

// You can also filter the results here.
const output = pretty(result);

console.error(output);
// ...

Available formatters

Common (available both in the browser and Node.js)

  • json
  • stylish
  • junit
  • html
  • text
  • teamcity

Node.js only

  • pretty
  • github-actions
  • sarif

FAQs

Last updated on 14 Sep 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc