|
|
5 дней назад | |
|---|---|---|
| .. | ||
| index.js | 5 дней назад | |
| license | 5 дней назад | |
| package.json | 5 дней назад | |
| readme.md | 5 дней назад | |
Sort vfile messages.
localeCompare to compare source, ruleId, or finally
reasonnpm:
npm install vfile-sort
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!']
sort(file)Sort messages in the given vfile.
See contributing.md in vfile/.github for ways to
get started.
See support.md for ways to get help.
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.