Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@antv/x6
Advanced tools
JavaScript diagramming library
# npm
$ npm install @antv/x6 --save
# yarn
$ yarn add @antv/x6
<div id="container" style="width: 600px; height: 400px"></div>
import { Graph } from '@antv/x6'
const container = document.getElementById('container')
const graph = new Graph(container)
const node1 = graph.addNode({
label: 'Hello',
x: 60,
y: 60,
width: 80,
height: 30,
})
const node2 = graph.addNode({
label: 'World',
x: 240,
y: 240,
width: 80,
height: 30,
})
const edge = graph.addEdge({ label: 'x6', source: node1, target: node2 })
# install global yarn and lerna
$ npm install yarn -g
$ npm install lerna -g
# install dependencies
$ yarn bootstrap
# run tests
$ yarn test
# build
$ yarn build
In order to serve the users better, x6 will send the URL and version information back to the AntV server:
https://kcart.alipay.com/web/bi.do
Except for URL and x6 version information, no other information will be collected. You can also turn it off with the following code:
x6.track(false)
Please let us know how can we help. Do check out issues for bug reports or suggestions first.
To become a contributor, please follow our contributing guide.
FAQs
JavaScript diagramming library that uses SVG and HTML for rendering
The npm package @antv/x6 receives a total of 34,505 weekly downloads. As such, @antv/x6 popularity was classified as popular.
We found that @antv/x6 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 64 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.