JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 640751
  • Score
    100M100P100Q198032F
  • License MIT

Sort vfile messages by line/column

Package Exports

  • vfile-sort

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vfile-sort) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vfile-sort Build Status Coverage Status

Sort vfile messages by line/column.

Installation

npm:

npm install vfile-sort

Usage

var vfile = require('vfile')
var sort = require('vfile-sort')

var file = vfile()

file.message('Error!', {line: 3, column: 1})
file.message('Another!', {line: 2, column: 2})

sort(file)

console.log(file.messages.map(String))
// => ['2:2: Another!', '3:1: Error!']

API

sort(file)

Sort messages in the given vfile.

Contribute

See contributing.md in vfile/vfile for ways to get started.

This organisation has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.

License

MIT © Titus Wormer