Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
megadraft-embed
Advanced tools
Include the plugin in the plugins
prop of your Megadraft
instance.
import React from "react";
import ReactDOM from "react-dom";
import Megadraft from "megadraft";
import plugin from "megadraft-embed";
class Example extends React.Component {
render(){
return (
<Megadraft plugins={[plugin]} />
);
}
}
ReactDOM.render(<Example />, document.getElementById("container"));
Install, run, test.
# Install npm dependencies
make setup
# Gulp dev-server task with webpack + sass running on http://localhost:8080/
make run
# Run mocha tests + eslint
make test
If you're constantly running tests, there's a faster alternative using mocha's watch feature:
make watch_unit
There's a prepublish
script entry on package.json
that runs build tasks
before publishing the package.
npm publish
The sample plugin uses the extension icon from https://design.google.com/icons/ under Apache License Version 2.0.
FAQs
Megadraft embed plugin
We found that megadraft-embed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.