
Research
/Security News
Coruna Respawned: Compromised art-template npm Package Leads to iOS Browser Exploit Kit
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.
@mastergo/html-mastergo
Advanced tools
中文 | English
A library can convert html into MasterGo plugin data structures.
yarn add @mastergo/html-mastergo | npm install @mastergo/html-mastergo
Install MasterGo client and init a plugin project.
Build UI(Click here MasterGo-Plugin if having trouble in how to develop plugins in MasterGo)
Use the library
/** UI side **/
import { htmlToMG, postProcess } from '@mastergo/html-mastergo';
// any dom element
const convert = async () => {
const layerJson = await htmlToMG(document.body);
// Not necessary, you can do anything you want to do with json processed by the function htmlToMG. This is just one way to do it.
const processedJson = await postProcess(layerJson)
// post data to plugin
parent.postMessage({
type: 'generate',
data: processedJson
}, '*')
}
/** Plugin side **/
import { renderToMasterGo } from '@mastergo/html-mastergo';
mg.ui.onmessage = (msg) => {
const { data, type } = msg
if (type === 'generate') {
// traverse
renderToMasterGo(data).then(root => {
console.log('root node', root)
})
}
}
A few known limitations:
If you find any problems or have any feedback, please Ask a Question
FAQs
Convert HTML to Mastergo code
The npm package @mastergo/html-mastergo receives a total of 33 weekly downloads. As such, @mastergo/html-mastergo popularity was classified as not popular.
We found that @mastergo/html-mastergo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.

Company News
As AI accelerates how code is written and shipped, Socket is scaling to protect the software supply chain from the growing wave of attacks targeting open source dependencies.

Company News
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.