vfile-sort
Sorts VFile
messages
.
Installation
npm:
npm install vfile-sort
vfile-sort is also available for bower,
component, and
duo, and as an AMD, CommonJS, and globals
module, uncompressed and
compressed.
Usage
var vfile = require('vfile');
var sort = require('vfile-sort');
var file = vfile();
file.warn('Error!', {
'line': 3,
'column': 1
});
file.warn('Another!', {
'line': 2,
'column': 2
});
sort(file);
console.log(file.messages.map(String));
API
sort(vfile)
Sorts messages
in the given
VFile
.
License
MIT © Titus Wormer