Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ You need Node.js version 4.4.7 or later installed to use the Contentstack JavaSc
### Setup and Installation

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

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

```html
<script type="text/javascript" src="/path/to/contentstack.min.js"></script>;
<script src="https://cdn.jsdelivr.net/npm/contentstack@latest/dist/web/contentstack.min.js"></script>
```
You can also specify a specific version number.
```html
<script src="https://cdn.jsdelivr.net/npm/contentstack@3.16.0/dist/web/contentstack.min.js"></script>
```

To initialize the SDK, you will need to specify the API Key, Delivery Token, and Environment Name of your stack.
Expand All @@ -36,7 +41,7 @@ If you want to set and use European region, refer to the code below:

#### For Node.js

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:
Node.js uses the Javascript SDK to create apps. To use the JavaScript SDK, install it via npm:

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

#### For React Native

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:
React Native uses the Javascript SDK to create apps. To use the JavaScript SDK, install it via npm:

```bash
npm i contentstack
Expand All @@ -73,7 +78,7 @@ npm i contentstack
To import the SDK in your project, use the following command:

```javascript
import Contentstack from `contentstack/react-native`
import Contentstack from `contentstack`
```

To initialize the SDK, you will need to specify the API Key, Delivery Token, and Environment Name of your stack.
Expand Down
61 changes: 0 additions & 61 deletions contentstack-templates/LICENSE

This file was deleted.

77 changes: 0 additions & 77 deletions contentstack-templates/README.md

This file was deleted.

Binary file removed contentstack-templates/favicon.ico
Binary file not shown.
49 changes: 0 additions & 49 deletions contentstack-templates/package.json

This file was deleted.

Loading