@noomorph/vfile-reporter-position
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

vfile-reporter-position

Format vfiles using a stylish reporter with position output and a summary line.

If the VFile has contents and a message will have a position then it will print the first erroneous line.

Example screenshot of vfile-reporter-position

This project was bootstrapped with TSDX.

Install

npm install vfile-reporter-position

Usage

See src/index.test.ts for the example from the screenshot.

API

reporter(files: VFile[]): string

Return a stylish report for the given VFile array.

Files without messages are ignored.

If there are no messages at all, it will return an empty string.

Inspired by

  • vfile-reporter: It offers more options but prints the position only as numbers.

TODO

  • Write tests
  • Add options

License

MIT © Bernhard Berger

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.3
    11
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.3
    11
  • 0.2.2
    1
  • 0.2.1
    0
  • 0.2.0
    0

Package Sidebar

Install

npm i @noomorph/vfile-reporter-position

Weekly Downloads

12

Version

0.2.3

License

MIT

Unpacked Size

14.9 kB

Total Files

9

Last publish

Collaborators

  • noomorph