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.
@sigma/node-border
Advanced tools
A node program that renders concentric discs in nodes for sigma.js
This package contains a node border renderer for sigma.js.
It handles various aspects, such as:
The shaders are generated according to these varying options, so the main export is createNodeBorderProgram
, a factory that creates a renderer class.
It also exports one core class, built with the default settings, to help using it in an easier way: NodeBorderProgram
is configured to render nodes with a 10% border of color borderColor
(read in the nodes data), and filled with the nodes color
.
Within your application that uses sigma.js, you can use @sigma/node-border
as following:
import { NodeBorderProgram } from "@sigma/node-border";
const graph = new Graph();
graph.addNode("some-node", {
x: 0,
y: 0,
size: 10,
type: "border",
label: "Some node",
color: "blue",
borderColor: "red",
});
const sigma = new Sigma(graph, container, {
nodeProgramClasses: {
border: NodeBorderProgram,
},
});
Please check the related Storybook for more advanced examples.
FAQs
A node program that renders concentric discs in nodes for sigma.js
The npm package @sigma/node-border receives a total of 1,211 weekly downloads. As such, @sigma/node-border popularity was classified as popular.
We found that @sigma/node-border demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.