@mastergo/html-mastergo
Advanced tools
+1
-1
| { | ||
| "name": "@mastergo/html-mastergo", | ||
| "version": "1.6.2", | ||
| "version": "1.6.3", | ||
| "description": "Convert HTML to Mastergo code", | ||
@@ -5,0 +5,0 @@ "files": [ |
+3
-3
@@ -9,3 +9,3 @@ # html-mastergo | ||
| ```shell | ||
| yarn add html-mastergo | npm install html-mastergo | ||
| yarn add @mastergo/html-mastergo | npm install @mastergo/html-mastergo | ||
| ``` | ||
@@ -23,3 +23,3 @@ | ||
| /** UI side **/ | ||
| import { htmlToMG, postProcess } from 'html-mastergo'; | ||
| import { htmlToMG, postProcess } from '@mastergo/html-mastergo'; | ||
| // any dom element | ||
@@ -39,3 +39,3 @@ const convert = async () => { | ||
| /** Plugin side **/ | ||
| import { renderToMasterGo } from 'html-mastergo'; | ||
| import { renderToMasterGo } from '@mastergo/html-mastergo'; | ||
| mg.ui.onmessage = (msg) => { | ||
@@ -42,0 +42,0 @@ const { data, type } = msg |
+3
-3
@@ -12,3 +12,3 @@ # html-mastergo | ||
| ```shell | ||
| yarn add html-mastergo | npm install html-mastergo | ||
| yarn add @mastergo/html-mastergo | npm install @mastergo/html-mastergo | ||
| ``` | ||
@@ -26,3 +26,3 @@ | ||
| /** UI侧 **/ | ||
| import { htmlToMG, postProcess } from 'html-mastergo'; | ||
| import { htmlToMG, postProcess } from '@mastergo/html-mastergo'; | ||
| // 任意dom元素 | ||
@@ -42,3 +42,3 @@ const convert = async () => { | ||
| /** 插件侧 **/ | ||
| import { renderToMasterGo } from 'html-mastergo'; | ||
| import { renderToMasterGo } from '@mastergo/html-mastergo'; | ||
| mg.ui.onmessage = (msg) => { | ||
@@ -45,0 +45,0 @@ const { data, type } = msg |
83841
0.1%