@editorjs/delimiter
Advanced tools
Comparing version 1.3.0 to 1.4.0
{ | ||
"name": "@editorjs/delimiter", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"keywords": [ | ||
"codex editor", | ||
"delimiter", | ||
"tool", | ||
"editor.js", | ||
@@ -14,6 +13,16 @@ "editorjs" | ||
"repository": "https://github.com/editor-js/delimiter", | ||
"main": "./dist/bundle.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "./dist/delimiter.umd.js", | ||
"module": "./dist/delimiter.mjs", | ||
"exports": { | ||
".": { | ||
"import": "./dist/delimiter.mjs", | ||
"require": "./dist/delimiter.umd.js" | ||
} | ||
}, | ||
"scripts": { | ||
"build": "webpack --mode production", | ||
"build:dev": "webpack --mode development --watch" | ||
"dev": "vite", | ||
"build": "vite build" | ||
}, | ||
@@ -25,11 +34,4 @@ "author": { | ||
"devDependencies": { | ||
"@babel/core": "^7.3.4", | ||
"@babel/preset-env": "^7.3.4", | ||
"babel-core": "^6.26.3", | ||
"babel-loader": "^8.0.5", | ||
"babel-preset-env": "^1.7.0", | ||
"css-loader": "^1.0.0", | ||
"style-loader": "^0.21.0", | ||
"webpack": "^4.29.5", | ||
"webpack-cli": "^3.2.3" | ||
"vite": "^4.5.0", | ||
"vite-plugin-css-injected-by-js": "^3.3.0" | ||
}, | ||
@@ -36,0 +38,0 @@ "dependencies": { |
@@ -7,12 +7,10 @@ ![](https://badgen.net/badge/Editor.js/v2.0/blue) | ||
![](https://capella.pics/de70e7f8-56cd-4779-848f-52c3f68deb47.jpg) | ||
![](assets/68747470733a2f2f636170656c6c612e706963732f64653730653766382d353663642d343737392d383438662d3532633366363864656234372e6a7067.jpeg) | ||
## Installation | ||
### Install via NPM | ||
Get the package | ||
```shell | ||
npm i --save-dev @editorjs/delimiter | ||
yarn add @editorjs/delimiter | ||
``` | ||
@@ -23,22 +21,7 @@ | ||
```javascript | ||
const Delimiter = require('@editorjs/delimiter'); | ||
import Delimiter from '@editorjs/delimiter'; | ||
``` | ||
### Download to your project's source dir | ||
Optionally, you can load this tool from CDN [JsDelivr CDN](https://cdn.jsdelivr.net/npm/@editorjs/delimiter@latest) | ||
1. Upload folder `dist` from repository | ||
2. Add `dist/bundle.js` file to your page. | ||
### Load from CDN | ||
You can load specific version of package from [jsDelivr CDN](https://www.jsdelivr.com/package/npm/@editorjs/delimiter). | ||
`https://cdn.jsdelivr.net/npm/@editorjs/delimiter@1.0.1` | ||
Require this script on a page with Editor.js. | ||
```html | ||
<script src="..."></script> | ||
``` | ||
## Usage | ||
@@ -51,3 +34,3 @@ | ||
... | ||
tools: { | ||
@@ -57,3 +40,3 @@ ... | ||
} | ||
... | ||
@@ -60,0 +43,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
96
6793
57