Highlight syntax error locations
npm install log-syntax-errorGenerates a block of text highlighting a syntax error, suitable for printing to a console.
``bash`
npm install log-syntax-error
`js`
var block = logSyntaxError( code, line, column, options );
console.error( block );
* code is some source codeline
* is the (one-based) line number of the errorcolumn
* (optional) is the (zero-based) column number of the erroroptions
* (optional)buffer
* - the number of lines to include either side of the error. Defaults to 2`.
MIT.