Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@libp2p/utils
Advanced tools
Package to aggregate shared logic and dependencies for the libp2p ecosystem
This package serves as a central repository for shared logic and dependencies for all libp2p packages, using
libp2p-utils
helps to easily re-use small scoped blocks of logic across all libp2p modules and also as a dependency proxy (thinkaegir
for domain logic dependencies).
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.
$ npm install --save @libp2p/utils
Each function should be imported directly.
import ipAndPortToMultiaddr from '@libp2p/utils/ip-port-to-multiaddr'
const ma = ipAndPortToMultiaddr('127.0.0.1', 9000)
You can check the API docs.
Contributions welcome. Please check out the issues.
Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to this repo are subject to the IPFS Code of Conduct.
MIT © Protocol Labs Inc.
FAQs
Package to aggregate shared logic and dependencies for the libp2p ecosystem
The npm package @libp2p/utils receives a total of 9,835 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.