mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
* Instructions for WASM/JS binding Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com> * Document Python, WASM/JS bindings Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com> --------- Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
577 B
577 B
-
Install
wasm-packcargo install wasm-pack -
Build
regorusjsfor nodejs.cd bindings/wasm wasm-pack build --target nodejs --release -
Install nodejs
-
Run the test script
$ node test.js \\{ \\ "result": [ \\ { \\ "expressions": [ \\ { \\ "value": "Hello, World!", \\ "text": "data.test.message", \\ "location": { \\ "row": 1, \\ "col": 1 \\ } \\ } \\ ] \\ } \\ ] \\}