Gathering detailed insights and metrics for @multiformats/uri-to-multiaddr
Gathering detailed insights and metrics for @multiformats/uri-to-multiaddr
Gathering detailed insights and metrics for @multiformats/uri-to-multiaddr
Gathering detailed insights and metrics for @multiformats/uri-to-multiaddr
Convert a URI to a Multiaddr: https://protocol.ai -> /dns4/protocol.ai/tcp/443/https
npm install @multiformats/uri-to-multiaddr
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
3 Stars
58 Commits
4 Forks
12 Watchers
4 Branches
37 Contributors
Updated on Mar 28, 2025
Latest Version
9.0.1
Package Id
@multiformats/uri-to-multiaddr@9.0.1
Unpacked Size
59.61 kB
Size
18.96 kB
File Count
10
NPM Version
10.9.2
Node Version
22.14.0
Published on
Mar 26, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
1
Convert a URI to a Multiaddr
1import { uriToMultiaddr } from '@multiformats/uri-to-multiaddr' 2 3console.log(uriToMultiaddr('https://protocol.ai')) 4// -> /dns4/protocol.ai/tcp/443/https
Domain names can represent one of
/dns4
- domain resolves to an ipv4 address (default)/dns6
- domain resolves to an ipv6 address/dnsaddr
- domain has a DNSLink TXT record pointing to an IPFS CIDThis library assumes /dns4
when it finds a domain name in the input string.
It makes no attempt query DNS. To override the default assumption, you can pass
in an options object as the second parameter to override it:
1import { uriToMultiaddr } from '@multiformats/uri-to-multiaddr' 2 3console.log(uriToMultiaddr('https://protocol.ai'), { defaultDnsType: 'dns6' }) 4// -> /dns6/protocol.ai/tcp/443/https
See test.js for the currently supported conversions.
Note: uri-to-multiaddr
will throw if the passed URI:
1$ npm i @multiformats/uri-to-multiaddr
<script>
tagLoading this module through a script tag will make it's exports available as MultiformatsUriToMultiaddr
in the global namespace.
1<script src="https://unpkg.com/@multiformats/uri-to-multiaddr/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.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
Found 10/27 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More