@xstoicunicornx/payjoin_test 0.1.0

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,28 @@
1
+ # Payjoin JavaScript Bindings
2
+
3
+ Welcome to the JavaScript language bindings for the [Payjoin Dev Kit](https://payjoindevkit.org/)!
4
+
5
+ ## Running Tests
6
+
7
+ Follow these steps to clone the repository and run the tests.
8
+ This assumes you already have Rust and Node.js installed.
9
+
10
+ ```shell
11
+ git clone https://github.com/payjoin/rust-payjoin.git
12
+ cd rust-payjoin/payjoin-ffi/javascript
13
+
14
+ # Clean out stale dependencies
15
+ npm run clean
16
+ rm -rf node_modules
17
+ # Install dependencies
18
+ cargo install wasm-bindgen-cli
19
+ npm install
20
+ # (macOS only - secp256k1-sys requires a WASM-capable C compiler)
21
+ brew install llvm
22
+
23
+ # Generate the bindings
24
+ bash ./scripts/generate_bindings.sh
25
+
26
+ # Run all tests
27
+ npm test
28
+ ```