Selection

Returns a selection range object indicating what text area to select if an application wants to offer the user a way to select the parts in a document affected by the error.

try {
  // ...
} catch(err) {
  if(err instanceof EnoError) {
    // The selection as a one-dimensional string-index range
    err.selection.from.index;  // e.g. 56 
    err.selection.to.index;    // e.g. 78
    
    // The selection as a line/column range
    err.selection.from.line;    // e.g. 3
    err.selection.from.column;  // e.g. 14
    err.selection.to.line;      // e.g. 3
    err.selection.to.column;    // e.g. 32
  }
}

Next page: Addendum