Skip to content

Commit 5dbfc44

Browse files
committed
update the readme
1 parent cd6c417 commit 5dbfc44

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,23 @@ Code Tool for the [Editor.js](https://ifmo.su/editor) allows to include code exa
88

99
## Installation
1010

11-
### Install via NPM
12-
1311
Get the package
1412

1513
```shell
16-
npm i --save-dev @editorjs/code
14+
yarn add @editorjs/code
1715
```
1816

1917
Include module at your application
2018

2119
```javascript
22-
const CodeTool = require('@editorjs/code');
20+
import CodeTool from '@editorjs/code';
2321
```
2422

25-
### Download to your project's source dir
26-
27-
1. Upload folder `dist` from repository
28-
2. Add `dist/bundle.js` file to your page.
29-
3023
### Load from CDN
3124

3225
You can load specific version of package from [jsDelivr CDN](https://www.jsdelivr.com/package/npm/@editorjs/code).
3326

34-
`https://cdn.jsdelivr.net/npm/@editorjs/code@2.0.0`
27+
`https://cdn.jsdelivr.net/npm/@editorjs/code@latest`
3528

3629
Require this script on a page with Editor.js.
3730

0 commit comments

Comments
 (0)