UCAST - Universal Conditions AST
ucast
is a low level library that helps to create awesome things! It aims to be a universal way to represent a set of conditions that can be transferred between APIs and databases.
Terms
To get introduction about what is parser, interpreter, conditions AST and translator, please check the README file of @ucast/core
What can I do with it?
- You can translate an HTTP request query string into SQL, Mongo, ElasticSearch or anything you can imagine.
- You can execute MongoDB query in javascript runtime
- You can create an expressive query builder for SQL
Generally speaking, ucast
can help you to transfer conditions somewhere or interpret them in any way.
Ecosystem
All packages support nodejs 8+ and ES5 compatible browsers (IE 9+)
Project | Status | Description |
---|---|---|
@ucast/core | conditions AST and helpers | |
@ucast/js | ucast JavaScript interpreter | |
@ucast/mongo | MongoDB query parser | |
@ucast/mongo2js | Evaluates MongoDB query in JavaScript runtime | |
@ucast/sql | SQL query interpreter + integrations with major ORMs |
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on guidelines for contributing