wcl_wasm 0.2.4-alpha → 0.2.6-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # wcl-wasm — JavaScript/WASM bindings for WCL
2
+
3
+ JavaScript and TypeScript bindings for [WCL (Wil's Configuration Language)](https://wcl.dev), running in the browser and Node.js via WebAssembly.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install wcl-wasm
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```javascript
14
+ import { init, parse, query } from 'wcl-wasm';
15
+
16
+ await init();
17
+
18
+ const doc = parse(`
19
+ server web {
20
+ port = 8080
21
+ host = "localhost"
22
+ }
23
+ `);
24
+
25
+ console.log(doc.values);
26
+ // { server: { web: { port: 8080, host: 'localhost' } } }
27
+
28
+ const result = query(`server web { port = 8080 }`, 'server | .port > 3000');
29
+ console.log(result);
30
+ ```
31
+
32
+ ## Links
33
+
34
+ - **Website**: [wcl.dev](https://wcl.dev)
35
+ - **Documentation**: [wcl.dev/docs](https://wcl.dev/docs/)
36
+ - **GitHub**: [github.com/wiltaylor/wcl](https://github.com/wiltaylor/wcl)
37
+
38
+ ## License
39
+
40
+ MIT
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "wcl_wasm",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for WCL (Wil's Configuration Language)",
5
- "version": "0.2.4-alpha",
5
+ "version": "0.2.6-alpha",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "wcl_wasm_bg.wasm",
package/wcl_wasm_bg.wasm CHANGED
Binary file