Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut committed Jul 29, 2024
1 parent 7071d95 commit 3b622f5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,22 @@ We use [JSDoc type annotations](https://www.typescriptlang.org/docs/handbook/int

### From CDN

1. Connect Uploadcare File Uploader directly from your document replacing `{{PACKAGE_VERSION}}` with the [latest version](https://github.com/uploadcare/blocks/releases) of the package:
1. Connect Uploadcare File Uploader directly from your document:

```html
<script type="module">
import * as LR from 'https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@{{PACKAGE_VERSION}}/web/blocks.min.js';
import * as LR from 'https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@1/web/blocks.min.js';
LR.registerBlocks(LR);
</script>
```

2. Start using Uploadcare File Uploader in your application markup (don't forget to specify `{{PACKAGE_VERSION}}` with the [latest one](https://github.com/uploadcare/blocks/releases)):
2. Start using Uploadcare File Uploader in your application markup:

```html
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@{{PACKAGE_VERSION}}/web/lr-file-uploader-regular.min.css"
href="https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@1/web/lr-file-uploader-regular.min.css"
/>

<lr-file-uploader-regular ctx-name="my-uploader"> </lr-file-uploader-regular>
Expand All @@ -92,7 +92,7 @@ We use [JSDoc type annotations](https://www.typescriptlang.org/docs/handbook/int

### From NPM

1. Install Uploadcare File Uploader package: `npm i --save-exact @uploadcare/file-uploader`
1. Install Uploadcare File Uploader package: `npm i @uploadcare/file-uploader`
2. Connect `Blocks` from your script file:

```js
Expand All @@ -101,12 +101,12 @@ import * as LR from '@uploadcare/file-uploader';
LR.registerBlocks(LR);
```

3. Start using Uploadcare File Uploader in your application markup and replace `{{PACKAGE_VERSION}}` with the [latest version](https://github.com/uploadcare/blocks/releases) of the package:
3. Start using Uploadcare File Uploader in your application markup:

```html
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@{{PACKAGE_VERSION}}/web/lr-file-uploader-regular.min.css"
href="https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@1/web/lr-file-uploader-regular.min.css"
/>

<lr-file-uploader-inline ctx-name="my-uploader"> </lr-file-uploader-inline>
Expand Down

0 comments on commit 3b622f5

Please sign in to comment.