highlight-es
Highlight ECMAScript syntax for the console or any other medium.
Install
npm install highlight-es
Usage
const highlight = ; { const re = / awesome$/; const match = 'You are awesome'; return match1;} const code = testFunc; console;
⬇
You can pass custom renderer to target other medium, e.g.:
;
Related
is-es2016-keyword - Determine if string is an ES2016 keyword.