
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@nephys/plexus
Advanced tools
[](LICENSE) [](https://www.npmjs.com/package/@nephys/plexus) [;
// Node creation
const node = new plexus.Node({host: "127.0.0.1", port: 8080}); // By default the host and port are 127.0.0.1:8080
// Join the network
node.connect({host: "remote_ip", port: remote_port});
Storing and retrieving data on the Network.
// Storing data
const item = node.store({key: key, value: value, republish: true}); // If no key is provided it will default to the hash of the value stored
// Retrieving data
const lookup = node.find({key: key});
// The item exists on the Network
lookup.on("found", (result) => {
console.log(result);
});
// The item doesn't exist anywhere on the Network
lookup.on("timeout", () => {
console.log("FIND request timed out");
});
Broadcasting to the whole Network.
// Sendind to the Network
node.broadcast({data: data});
// Handling incoming Broadcasts
node.on("broadcast", (data) => {
console.log(data);
});
If you like the project and want to support me you can do so by donating any amout to one of the following addresses or by using it in your own projects and sharing this repo.
Tank you! ❤️
@Nephys, 2021
FAQs
[](LICENSE) [](https://www.npmjs.com/package/@nephys/plexus) [![node-current (scoped)](https:/
The npm package @nephys/plexus receives a total of 4 weekly downloads. As such, @nephys/plexus popularity was classified as not popular.
We found that @nephys/plexus 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.