
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
vue-d3-network
Advanced tools
Vue component to graph networks using d3-force
npm install vue-d3-network --save
...
<d3-network :net-nodes="nodes" :net-links="links" :options="options" />
...
import D3Network from 'vue-d3-network'
...
components: {
D3Network
},
....
<style src="vue-d3-network/dist/vue-d3-network.css"></style>
Or: import source component from: 'vue-d3-network/src/vue-d3-network.vue' And install devDependencies. (d3-force, stylus and pug) See: package.json)
net-nodes: Array of nodes objects:
net-links: Array of links objects:
selection : Object, links and nodes selected
nodeSym: String, node sprite svg doc
nodeCb: Function(node) -> node, node formatter
linkCb: Function(link) -> link, node link formatter
simCb: Function(sim) -> sim, d3 simulation formatter
customForces: Object: { [d3Function]:args }
options:
canvas: Boolean, render as canvas, false = svg
size: Object, graph size. Default: container size
offset: Object, graph center offset
force: Number
forces Object:
nodeSize: Number, node radius | size in px
linkWidth: Number, link thickness in px
canvasStyles: Object
SVG css classes:
To use this css styles in canvas we create 'ghosts' svg elements to pick up values from computed css properties. If you want, you can stylize the canvas elements directly, setting: options.canvasStyles, but these styles will not be applied to the svg graph.
see: src/canvasStyles.js
FAQs
Vue component to graph networks using d3-force
We found that vue-d3-network 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.
Research
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.