@suprsend/web-sdk 0.1.26 → 0.1.29

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 CHANGED
@@ -2,4 +2,32 @@
2
2
 
3
3
  Suprsend Javascript SDK for browsers
4
4
 
5
+ ## Installation
6
+
7
+ `suprsend-browser-sdk` is available as npm package. You can install using npm or yarn.
8
+
9
+ Using npm:
10
+
11
+ ```bash
12
+ npm install @suprsend/web-sdk
13
+ ```
14
+
15
+ Using yarn:
16
+
17
+ ```bash
18
+ yarn add @suprsend/web-sdk
19
+ ```
20
+
21
+ ## Initialization
22
+
23
+ Initialize the Suprsend SDK
24
+
25
+ ```node
26
+ import suprsend from "@suprsend/web-sdk";
27
+
28
+ ...
29
+
30
+ suprsend.init(WORKSPACE_KEY, WORKSPACE_SECRET); // Initialize SDK
31
+ ```
32
+
5
33
  Refer full documentation [here](https://docs.suprsend.com/docs/javascript-sdk)