@mikro-orm/sql-highlighter
v1.0.1
Published
Node.js SQL highlighter for CLI based on doctrine/sql-formatter.
Downloads
95,444
Readme
SQL highlighter for CLI
- based on doctrine/sql-formatter
- built for CLI
- (almost) dependency free
🚀 Quick Start
$ yarn add @mikro-orm/sql-highlighter
or
$ npm i -s @mikro-orm/sql-highlighter
Usage:
import { SqlHighlighter } from '@mikro-orm/sql-highlighter';
const highlighter = new SqlHighlighter();
const ret = highlighter.highlight('select 1 + 1');
console.log(ret);
🤝 Contributing
Contributions, issues and feature requests are welcome.
Authors
👤 Martin Adámek
See also the list of contributors who participated in this project.
Show Your Support
Please ⭐️ this repository if this project helped you!
📝 License
Copyright © 2018 Martin Adámek.
This project is licensed under the MIT License - see the LICENSE file for details.