Node.js SQL highlighter for CLI based on doctrine/sql-formatter.
npm install @mikro-orm/sql-highlighter- based on doctrine/sql-formatter
- built for CLI
- (almost) dependency free
```
$ yarn add @mikro-orm/sql-highlighter
or
``
$ npm i -s @mikro-orm/sql-highlighter
Usage:
`typescript
import { SqlHighlighter } from '@mikro-orm/sql-highlighter';
const highlighter = new SqlHighlighter();
const ret = highlighter.highlight('select 1 + 1');
console.log(ret);
``
Contributions, issues and feature requests are welcome.
👤 Martin Adámek
- Twitter: @B4nan
- Github: @b4nan
See also the list of contributors who participated in this project.
Please ⭐️ this repository if this project helped you!
Copyright © 2018 Martin Adámek.
This project is licensed under the MIT License - see the LICENSE file for details.