Node.js MongoDB query highlighter for CLI based.
npm install @mikro-orm/mongo-highlighter- built for CLI
- (almost) dependency free
```
$ yarn add @mikro-orm/mongo-highlighter
or
``
$ npm i -s @mikro-orm/mongo-highlighter
Usage:
`typescript
import { MongoHighlighter } from '@mikro-orm/mongo-highlighter';
const highlighter = new MongoHighlighter();
const ret = highlighter.highlight(db.getCollection('author').insertOne({ createdAt: ISODate('2020-01-01T12:00:00Z'), updatedAt: ISODate('2020-01-01T12:00:00Z'), foo: 'bar', name: 'Jon Snow', email: 'snow@wall.st', termsAccepted: false }, { session: '[ClientSession]' }););``
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 © 2020 Martin Adámek.
This project is licensed under the MIT License - see the LICENSE file for details.