diff --git a/README b/README.md
similarity index 61%
rename from README
rename to README.md
index 5c850a4..39397da 100644
--- a/README
+++ b/README.md
@@ -19,13 +19,8 @@ To build and use this:
4. Use the API:
```js
- // Method 1: Get structured result
- const result = evaluate_cel("name + ' is ' + string(age)", {name: "Alice", age: 30});
- console.log(result.success, result.result, result.error);
-
- // Method 2: Get string result or error
try {
- const result = evaluate_cel_string("name + ' is ' + string(age)", {name: "Alice", age: 30});
+ const result = evaluate_cel("name + ' is ' + string(age)", {name: "Alice", age: 30});
console.log(result);
} catch (error) {
console.error(error);
diff --git a/index.html b/index.html
index 3485bef..49da250 100644
--- a/index.html
+++ b/index.html
@@ -113,8 +113,8 @@
CEL-Rust WASM-bindgen Demo
- This demo uses wasm-bindgen to provide a clean JavaScript API
- for CEL evaluation.
+ This demo uses wasm-bindgen to provide a JavaScript API for
+ CEL evaluation using cel-rust.
@@ -136,14 +136,9 @@ name + " is " + string(age) + " years old and " + (active ? "active" : "inactive
-
-
-
-
-
-
Click "Evaluate" to see results...
+
WASM module not loaded yet...
@@ -162,9 +157,9 @@ name + " is " + string(age) + " years old and " + (active ? "active" : "inactive