vfile-sort

WebJar for vfile-sort

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

vfile-sort
Последняя версия

Последняя версия

2.2.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

vfile-sort
WebJar for vfile-sort
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/vfile/vfile-sort

Скачать vfile-sort

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/vfile-sort/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>vfile-sort</artifactId>
    <version>2.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/vfile-sort/
implementation 'org.webjars.npm:vfile-sort:2.2.1'
// https://jarcasting.com/artifacts/org.webjars.npm/vfile-sort/
implementation ("org.webjars.npm:vfile-sort:2.2.1")
'org.webjars.npm:vfile-sort:jar:2.2.1'
<dependency org="org.webjars.npm" name="vfile-sort" rev="2.2.1">
  <artifact name="vfile-sort" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='vfile-sort', version='2.2.1')
)
libraryDependencies += "org.webjars.npm" % "vfile-sort" % "2.2.1"
[org.webjars.npm/vfile-sort "2.2.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

vfile-sort

Build Coverage Downloads Size Sponsors Backers Chat

Sort vfile messages.

  • First sorts by line/column: earlier messages come first
  • If two messages occurred at the same place, sorts fatal error before warnings, before info messages
  • Otherwise, uses localeCompare to compare source, ruleId, or finally reason

Install

npm:

npm install vfile-sort

Use

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/.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.

License

MIT © Titus Wormer

org.webjars.npm
Virtual file format for text processing used in @unifiedjs

Версии библиотеки

Версия
2.2.1