Cursor
Returns a cursor position object indicating where a cursor should be placed if an application wants to offer the user a way to move the cursor straight to the error location.
try {
// ...
} catch(err) {
if(err instanceof EnoError) {
err.cursor.index; // returns a one-dimensional string-index, e.g. 56
err.cursor.line; // returns the line, e.g. 3
err.cursor.column; // returns the column, e.g. 14
}
}
Next page: Selection