Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@libp2p/utils
Advanced tools
Package to aggregate shared logic and dependencies for the libp2p ecosystem
Package to aggregate shared logic and dependencies for the libp2p ecosystem
The libp2p ecosystem has lots of repos with it comes several problems like:
These problems are the motivation for this package, having shared logic in this package avoids creating cyclic dependencies, centralizes common use modules/functions (exactly like aegir does for the tooling), semantic versioning for 3rd party dependencies is handled in one single place (a good example is going from streams 2 to 3) and maintainers should only care about having libp2p-utils
updated.
Each function should be imported directly.
import { ipPortToMultiaddr } from '@libp2p/utils/ip-port-to-multiaddr'
const ma = ipPortToMultiaddr('127.0.0.1', 9000)
$ npm i @libp2p/utils
<script>
tagLoading this module through a script tag will make it's exports available as Libp2pUtils
in the global namespace.
<script src="https://unpkg.com/@libp2p/utils/dist/index.min.js"></script>
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
FAQs
Package to aggregate shared logic and dependencies for the libp2p ecosystem
The npm package @libp2p/utils receives a total of 16,922 weekly downloads. As such, @libp2p/utils popularity was classified as popular.
We found that @libp2p/utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.