You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+10-5
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,16 @@ You need Node.js version 4.4.7 or later installed to use the Contentstack JavaSc
14
14
### Setup and Installation
15
15
16
16
#### For JavaScript (Browser)
17
+
For browsers, we recommend to download the library via npm or yarn to ensure 100% availability.
17
18
18
-
To use the JavaScript SDK, download it from[here](https://contentstack.com/docs/platforms/javascript-browser/javascript_sdk_latest) and include it in the<script> tag:
19
+
If you'd like to use a standalone built file you can use the following script tag or download it from[jsDelivr](https://www.jsdelivr.com/package/npm/contentstack), under the`dist` directory:
To initialize the SDK, you will need to specify the API Key, Delivery Token, and Environment Name of your stack.
@@ -36,7 +41,7 @@ If you want to set and use European region, refer to the code below:
36
41
37
42
#### For Node.js
38
43
39
-
Node.js uses the Javascript SDK to create apps. To use the JavaScript SDK, download it from [here](https://contentstack.com/docs/platforms/javascript-browser/javascript_sdk_latest), OR install it via npm:
44
+
Node.js uses the Javascript SDK to create apps. To use the JavaScript SDK, install it via npm:
40
45
41
46
```bash
42
47
npm i contentstack
@@ -64,7 +69,7 @@ If you want to set and use European region, refer to the code below:
64
69
65
70
#### For React Native
66
71
67
-
React Native uses the Javascript SDK to create apps. To use the JavaScript SDK, download it from [here](https://contentstack.com/docs/platforms/javascript-browser/javascript_sdk_latest), OR install ist via npm:
72
+
React Native uses the Javascript SDK to create apps. To use the JavaScript SDK, install it via npm:
68
73
69
74
```bash
70
75
npm i contentstack
@@ -73,7 +78,7 @@ npm i contentstack
73
78
To import the SDK in your project, use the following command:
74
79
75
80
```javascript
76
-
importContentstackfrom`contentstack/react-native`
81
+
importContentstackfrom`contentstack`
77
82
```
78
83
79
84
To initialize the SDK, you will need to specify the API Key, Delivery Token, and Environment Name of your stack.
0 commit comments