mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
055bdd295f
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
29 lines
529 B
Markdown
29 lines
529 B
Markdown
# regorus-wasm
|
|
|
|
**Regorus** is
|
|
|
|
- *Rego*-*Rus(t)* - A fast, light-weight [Rego](https://www.openpolicyagent.org/docs/latest/policy-language/)
|
|
interpreter written in Rust.
|
|
- *Rigorous* - A rigorous enforcer of well-defined Rego semantics.
|
|
|
|
See [Repository](https://github.com/microsoft/regorus).
|
|
|
|
`regorus-wasm` is Regorus compiled into WASM.
|
|
|
|
## Usage
|
|
|
|
In nodejs,
|
|
|
|
``javascript
|
|
|
|
var regorus = require('regorus-wasm')
|
|
|
|
// Create an engine.
|
|
var engine = new regorus.Engine();
|
|
|
|
// Add Rego policy.
|
|
engine.add_policy()
|
|
|
|
|
|
```
|