Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@pipepack/graph
Advanced tools
Readme
A graph data structure with pipepack related algorithm.
This library is distributed only via NPM.
# npm
npm install @pipepack/graph;
# yarn
yarn add @pipepack/graph;
Then, use like below:
// esm
import { Graph } from '@pipepack/graph';
// commonjs
const { Graph } = require('@pipepack/graph');
Serializes the graph with declaration below:
type NodeID = string;
type EdgeID = string;
type EdgeWeight = string | number;
interface GraphNode {
id: NodeID;
}
interface GraphEdge {
source: NodeID;
target: NodeID;
weight?: EdgeWeight;
}
interface Serialized {
nodes: GraphNode[];
edges: GraphEdge[];
}
const graph = new Graph();
graph.addEdge('a', 'b');
graph.addEdge('b', 'c');
{
"nodes": [{ "id": "a" }, { "id": "b" }, { "id": "c" }],
"links": [
{ "source": "a", "target": "b", "weight": 1 },
{ "source": "b", "target": "c", "weight": 1 }
]
}
MIT
FAQs
A graph data structure with pipepack related algorithm.
The npm package @pipepack/graph receives a total of 6 weekly downloads. As such, @pipepack/graph popularity was classified as not popular.
We found that @pipepack/graph 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.