measur-tools-suite 1.0.13-beta.147 → 1.0.13-beta.149

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/BUILD.md CHANGED
@@ -171,13 +171,10 @@ emcc --version # should show Emscripten version
171
171
 
172
172
  With emsdk activated, configure and build:
173
173
  ```bash
174
- emcmake cmake -S . -B build-wasm -DBUILD_WASM=ON
175
- emmake make -C build-wasm
176
- ```
177
- Artifacts appear under `build-wasm/bin/`. Copy them to `bin/` for standard access:
178
- ```bash
179
- cp -a build-wasm/bin ./bin
174
+ emcmake cmake -DBUILD_WASM=ON
175
+ emmake make
180
176
  ```
177
+ Artifacts appear under `bin/`
181
178
 
182
179
  ### 6.5 WebAssembly Usage Example
183
180
 
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <img align="left" width="80" height="80" src="docs/assets/app-icon.png">
4
4
 
5
- The MEASUR Tools Suite is a collection of industrial efficiency calculations written in C++ with WebAssembly bindings for browser and Node.js environments. The suite provides computational engines for the MEASUR (Manufacturing Energy Assessment Tool for Uniform Reporting) application ecosystem.
5
+ The MEASUR Tools Suite is a collection of industrial efficiency calculations written in C++ with WebAssembly bindings for browser and Node.js environments. The suite provides computational engines for the [MEASUR](https://github.com/ORNL-AMO/AMO-Tools-Desktop) (Manufacturing Energy Assessment Suite for Utility Reduction) application ecosystem.
6
6
 
7
7
  ## Features
8
8
 
@@ -15,6 +15,8 @@ The MEASUR Tools Suite is a collection of industrial efficiency calculations wri
15
15
  - Steam system modeling
16
16
  - Waste water treatment
17
17
 
18
+ Check out the [Master List of MEASUR Calculators](https://github.com/ORNL-AMO/AMO-Tools-Desktop/blob/develop/docs/calculator_list.md)
19
+
18
20
  ## Quick Start
19
21
 
20
22
  ### Using npm Package
@@ -23,9 +25,17 @@ The MEASUR Tools Suite is a collection of industrial efficiency calculations wri
23
25
  npm install measur-tools-suite
24
26
  ```
25
27
 
26
- ```javascript
27
- const measurTools = require('measur-tools-suite');
28
- // Use calculation functions
28
+ ```js
29
+ // Initialize module
30
+ const moduleFactory = (await import('/path/to/client.js')).default;
31
+ const toolsSuiteModule = await moduleFactory({
32
+ locateFile: (filename) => '/path/to/client.wasm'
33
+ });
34
+
35
+ // Example call
36
+ const totalHeatLoss = toolsSuiteModule.wallTotalHeatLoss(
37
+ 500, 80, 225, 10, 0.9, 1.394, 1
38
+ );
29
39
  ```
30
40
 
31
41
  ### Building from Source
@@ -36,8 +46,8 @@ cmake -S . -B build-cpp
36
46
  cmake --build build-cpp
37
47
 
38
48
  # WebAssembly build (requires Emscripten)
39
- emcmake cmake -S . -B build-wasm -DBUILD_WASM=ON
40
- emmake make -C build-wasm
49
+ emcmake cmake -DBUILD_WASM=ON
50
+ emmake make
41
51
 
42
52
  # Packaging
43
53
  cmake -S . -B build-pkg -DBUILD_PACKAGE=ON -DBUILD_TESTING=OFF
package/bin/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "measur-tools-suite",
3
- "version": "1.0.13-beta.147",
3
+ "version": "1.0.13-beta.149",
4
4
  "engines": {
5
5
  "node": "20.19.4",
6
6
  "npm": "10.8.2"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "measur-tools-suite",
3
- "version": "1.0.13-beta.147",
3
+ "version": "1.0.13-beta.149",
4
4
  "engines": {
5
5
  "node": "20.19.4",
6
6
  "npm": "10.8.2"