@commitlint/format
Format commitlint reports
Last updated 7 years ago by bycedric .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @commitlint/format 
SYNC missed versions from official npm registry.

Format commitlint reports

@commitlint/format

Getting started

npm install --save @commitlint/format

Example

const format = require('@commitlint/format');

const output = format({
  valid: false,
  errorCount: 1,
  warningCount: 1,
  results: [
    {
      valid: false,
      input: 'some: commit message',
      errors: [
        {
          valid: false,
          level: 2,
          name: 'some-error',
          message: 'This will show up red as it has level 2'
        }
      ],
      warnings: [
        {
          valid: true,
          level: 0,
          name: 'some-hint',
          message: 'This will not show up as it has level 0'
        },
        {
          valid: false,
          level: 1,
          name: 'some-warning',
          message: 'This will show up yellow as it has level 1'
        }
      ]
    }
  ]  
}, {
  color: false
});

process.stdout.write(output);

/* => [
  '✖   This will show up red as it has level 2 [some-error]',
  '    This will not show up as it has level 0 [some-hint]',
  '⚠   This will show up yellow as it has level 1 [some-warning]',
  '✖   found 1 problems, 2 warnings'
] */

Consult docs/api for comprehensive documentation.

Current Tags

  • 21.2.3                                ...           latest (2 months ago)

72 Versions

  • 21.2.3                                ...           2 months ago
  • 21.2.2                                ...           3 months ago
  • 21.2.0                                ...           5 months ago
  • 21.1.0                                ...           5 months ago
  • 21.0.1                                ...           6 months ago
  • 21.0.0                                ...           7 months ago
  • 20.5.0                                ...           8 months ago
  • 20.4.4                                ...           8 months ago
  • 20.4.3                                ...           9 months ago
  • 20.4.0                                ...           10 months ago
  • 20.3.1                                ...           a year ago
  • 20.2.0                                ...           a year ago
  • 20.0.0                                ...           a year ago
  • 19.8.1                                ...           2 years ago
  • 19.8.0                                ...           2 years ago
  • 19.5.0                                ...           2 years ago
  • 19.3.0                                ...           3 years ago
  • 19.0.3                                ...           3 years ago
  • 19.0.0                                ...           3 years ago
  • 18.6.1                                ...           3 years ago
  • 18.6.0                                ...           3 years ago
  • 18.4.4                                ...           3 years ago
  • 18.4.3                                ...           3 years ago
  • 18.4.0                                ...           3 years ago
  • 18.1.0                                ...           3 years ago
  • 18.0.0                                ...           3 years ago
  • 17.8.1                                ...           3 years ago
  • 17.4.4                                ...           4 years ago
  • 17.4.0                                ...           4 years ago
  • 17.0.0                                ...           5 years ago
  • 16.2.1                                ...           5 years ago
  • 16.0.0                                ...           5 years ago
  • 15.0.0                                ...           5 years ago
  • 8.3.6                                ...           5 years ago
  • 14.1.0                                ...           5 years ago
  • 14.0.0                                ...           5 years ago
  • 13.2.0                                ...           5 years ago
  • 13.1.0                                ...           5 years ago
  • 13.0.0                                ...           6 years ago
  • 12.1.4                                ...           6 years ago
  • 12.1.3                                ...           6 years ago
  • 12.1.2                                ...           6 years ago
  • 12.1.1                                ...           6 years ago
  • 12.0.1                                ...           6 years ago
  • 12.0.0                                ...           6 years ago
  • 11.0.0                                ...           6 years ago
  • 10.0.0                                ...           6 years ago
  • 9.1.2                                ...           6 years ago
  • 9.1.1                                ...           6 years ago
  • 9.1.0                                ...           6 years ago
  • 9.0.1                                ...           7 years ago
  • 9.0.0                                ...           7 years ago
  • 8.3.4                                ...           7 years ago
  • 8.3.2                                ...           7 years ago
  • 8.3.0                                ...           7 years ago
  • 8.2.0                                ...           7 years ago
  • 8.1.0                                ...           7 years ago
  • 8.0.0                                ...           8 years ago
  • 7.6.1                                ...           8 years ago
  • 7.6.0                                ...           8 years ago
  • 7.5.0                                ...           8 years ago
  • 7.4.0                                ...           8 years ago
  • 7.3.1                                ...           8 years ago
  • 7.3.0                                ...           8 years ago
  • 7.2.1                                ...           8 years ago
  • 7.2.0                                ...           8 years ago
  • 7.1.2                                ...           8 years ago
  • 7.1.1                                ...           8 years ago
  • 7.0.0                                ...           8 years ago
  • 6.1.3                                ...           9 years ago
  • 6.1.2                                ...           9 years ago
  • 6.1.1                                ...           9 years ago
Downloads
Total 230
Today 0
This Week 4
This Month 186
Last Day 0
Last Week 124
Last Month 44
Dependencies (1)
Dev Dependencies (4)

© 2010 - cnpmjs.org x YWFE | Home | YWFE