0.0.0 • Published 1 year ago

@conformyze/lynta-formatters v0.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

@conformyze/lynta-formatters

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

Usage

import { pretty } from "@conformyze/lynta-formatters";

const lynta = new Lynta();
// ...
const result = await lynta.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