
Research
/Security News
CanisterWorm: npm Publisher Compromise Deploys Backdoor Across 29+ Packages
The worm-enabled campaign hit @emilgroup and @teale.io, then used an ICP canister to deliver follow-on payloads.
@multiformats/multiaddr-to-uri
Advanced tools
Convert a Multiaddr to a URI
This module allows easy conversion of Multiaddrs to string URIs.
import { multiaddrToUri } from '@multiformats/multiaddr-to-uri'
console.log(multiaddrToUri('/dnsaddr/protocol.ai/https'))
// -> https://protocol.ai
console.log(multiaddrToUri('/ip4/127.0.0.1/tcp/8080'))
// -> http://127.0.0.1:8080
console.log(multiaddrToUri('/ip4/127.0.0.1/tcp/8080', { assumeHttp: false }))
// -> tcp://127.0.0.1:8080
Note:
/tcp is the last (terminating) protocol HTTP is assumed by default (implicit assumeHttp: true)
http:// instead of tcp://{ assumeHttp: false } disables this behavior$ npm i @multiformats/multiaddr-to-uri
<script> tagLoading this module through a script tag will make its exports available as MultiformatsMultiaddrToUri in the global namespace.
<script src="https://unpkg.com/@multiformats/multiaddr-to-uri/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
Convert a Multiaddr to a URI
The npm package @multiformats/multiaddr-to-uri receives a total of 30,477 weekly downloads. As such, @multiformats/multiaddr-to-uri popularity was classified as popular.
We found that @multiformats/multiaddr-to-uri demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 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.

Research
/Security News
The worm-enabled campaign hit @emilgroup and @teale.io, then used an ICP canister to deliver follow-on payloads.

Research
/Security News
Attackers compromised Trivy GitHub Actions by force-updating tags to deliver malware, exposing CI/CD secrets across affected pipelines.

Security News
ENISA’s new package manager advisory outlines the dependency security practices companies will need to demonstrate as the EU’s Cyber Resilience Act begins enforcing software supply chain requirements.