Skip to content

Commit e1e57f9

Browse files
authored
Merge pull request #91 from contentstack/enhancement/package-update
Package dependency update
2 parents 3ca4c6d + a3a085f commit e1e57f9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1216
-32234
lines changed

README.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ You need Node.js version 4.4.7 or later installed to use the Contentstack JavaSc
1414
### Setup and Installation
1515

1616
#### For JavaScript (Browser)
17+
For browsers, we recommend to download the library via npm or yarn to ensure 100% availability.
1718

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:
1920

2021
```html
21-
<script type="text/javascript" src="/path/to/contentstack.min.js"></script>;
22+
<script src="https://cdn.jsdelivr.net/npm/contentstack@latest/dist/web/contentstack.min.js"></script>
23+
```
24+
You can also specify a specific version number.
25+
```html
26+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/web/contentstack.min.js"></script>
2227
```
2328

2429
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:
3641

3742
#### For Node.js
3843

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:
4045

4146
```bash
4247
npm i contentstack
@@ -64,7 +69,7 @@ If you want to set and use European region, refer to the code below:
6469

6570
#### For React Native
6671

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:
6873

6974
```bash
7075
npm i contentstack
@@ -73,7 +78,7 @@ npm i contentstack
7378
To import the SDK in your project, use the following command:
7479

7580
```javascript
76-
import Contentstack from `contentstack/react-native`
81+
import Contentstack from `contentstack`
7782
```
7883

7984
To initialize the SDK, you will need to specify the API Key, Delivery Token, and Environment Name of your stack.

contentstack-templates/LICENSE

-61
This file was deleted.

contentstack-templates/README.md

-77
This file was deleted.

contentstack-templates/favicon.ico

-31.3 KB
Binary file not shown.

contentstack-templates/package.json

-49
This file was deleted.

0 commit comments

Comments
 (0)