{"name":"@multiformats/uri-to-multiaddr","version":"7.0.0","description":"Convert a URI to a Multiaddr: https://multiformats.io -> /dns4/multiformats.io/tcp/443/https","author":{"name":"olizilla"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/multiformats/js-uri-to-multiaddr#readme","repository":{"type":"git","url":"git+https://github.com/multiformats/js-uri-to-multiaddr.git"},"bugs":{"url":"https://github.com/multiformats/js-uri-to-multiaddr/issues"},"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"release":{"branches":["master"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"breaking":true,"release":"major"},{"revert":true,"release":"patch"},{"type":"feat","release":"minor"},{"type":"fix","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","release":"patch"},{"type":"deps","release":"patch"},{"scope":"no-release","release":false}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"chore","section":"Trivial Changes"},{"type":"docs","section":"Documentation"},{"type":"deps","section":"Dependencies"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"]},"scripts":{"clean":"aegir clean","lint":"aegir lint","dep-check":"aegir dep-check","generate":"protons src/pb/peer.proto src/pb/tags.proto","build":"aegir build","test":"aegir test","test:chrome":"aegir test -t browser","test:chrome-webworker":"aegir test -t webworker","test:firefox":"aegir test -t browser -- --browser firefox","test:firefox-webworker":"aegir test -t webworker -- --browser firefox","test:node":"aegir test -t node","test:electron-main":"aegir test -t electron-main","release":"aegir release"},"dependencies":{"@multiformats/multiaddr":"^11.0.0","is-ip":"^5.0.0"},"devDependencies":{"aegir":"^37.5.3"},"gitHead":"36f5093871e41c832350f4cdf196ba1ab6920ecb","_id":"@multiformats/uri-to-multiaddr@7.0.0","_nodeVersion":"16.17.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-mB/I4znETEZA/PmflXmnjWj3ENcyJg6Yv3EQQbIdA5n9fJ43c58uMF2Ew7yXtl0Wxt4d1pAVFA6fki2xFrHGew==","shasum":"25fa4b5a4eddc493b5140d70839f95482f64bd00","tarball":"http://registry-npm.ywwl.com/@multiformats/uri-to-multiaddr/download/@multiformats/uri-to-multiaddr-7.0.0.tgz","fileCount":8,"unpackedSize":17007,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJH7JmfrVddEMK/wfkEcZBa7XzVuwSAM3fJbv8hq4/ZAIgTA4LGjzrCwMlqyK6/uhHj37koTw4zmGdhfoazzAaZDo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKzKlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLaw//SaPPnWnowPcd2SlT/rkbFtyn9FxZjd7Y6g++Dq3E6NpSTQNQ\r\nnyHKixKPOb+XZQ0RXeTNm1LJg4RQIf7yrjM3/rTnw/kLlyCs75TXzmQYWqww\r\nY1zjtYnannfBY2+LVKGJVnd2QQ/J2mNmzMAx9nZ5mWbLwrosQwDwyBqwMjAh\r\nq8McEhZjPeUbnqgi/npUWknyHbnsGWT11y1p63rObFjSJ/IhXIUTwASMZXjV\r\nfJd2ZlYqFV0UTrUS+R1Qef7s/F+g3ZS0QGYeaT17RCqGl2B7iy97cAft9atY\r\nQ/NFlmpUq6wap5leBFuZYKsSoj4aXIUim2uN0auahN1OES0NF+CeuCwE2pIz\r\nHp6OoVwdS3pR3T+iOPgcfFf/az4Wo3ykGlPFbdo30MMfp69MAci1iDnHMG2N\r\nEzjIgY7DkYjHiWQ1v4vmbzE8Rj4Pa13oRrbCMqwIfsbbBca6YX6joW3lTh5k\r\n5CEcxuQLQnA3qoMbKZlu5JYpfmlv12/5J3jrw/az4AP+J48w7Gs7CLSuyYI8\r\n5vuQrF0CNDiAQmIigfvhzgbDuKpMukvAL/jZ9fWBGYfm5SisGsFd7o3kxkzp\r\nPe5r6oCiJ75JEUHbrJB0Qh8H+vVIjaD8tRRTYFJHrVZAcAnnBWX9mlMnMGnh\r\nu03e+tvBgEhFdliDP5adJ8g8PEo77con34M=\r\n=qNk5\r\n-----END PGP SIGNATURE-----\r\n","size":4747,"noattachment":false,"key":"/@multiformats/uri-to-multiaddr/-/@multiformats/uri-to-multiaddr-7.0.0.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"npm-service-account-multiformats","email":"npm-service-account+multiformats@protocol.ai"},{"name":"alanshaw","email":"alan138@gmail.com"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"lidel","email":"lidel@lidel.org"},{"name":"rvagg","email":"r@va.gg"},{"name":"daviddias","email":"mail@daviddias.me"},{"name":"vmx","email":"volker.mische@gmail.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"hugomrdias","email":"hugomrdias@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uri-to-multiaddr_7.0.0_1663775397392_0.7515334726301282"},"_hasShrinkwrap":false,"readme":"# @multiformats/uri-to-multiaddr\n\n[![multiformats.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://multiformats.io)\n[![codecov](https://img.shields.io/codecov/c/github/multiformats/js-uri-to-multiaddr.svg?style=flat-square)](https://codecov.io/gh/multiformats/js-uri-to-multiaddr)\n[![CI](https://img.shields.io/github/actions/workflow/status/multiformats/js-uri-to-multiaddr/js-test-and-release.yml?branch=main\\&style=flat-square)](https://github.com/multiformats/js-uri-to-multiaddr/actions/workflows/js-test-and-release.yml?query=branch%3Amain)\n\n> Convert a URI to a Multiaddr\n\n# About\n\n<!--\n\n!IMPORTANT!\n\nEverything in this README between \"# About\" and \"# Install\" is automatically\ngenerated and will be overwritten the next time the doc generator is run.\n\nTo make changes to this section, please update the @packageDocumentation section\nof src/index.js or src/index.ts\n\nTo experiment with formatting, please run \"npm run docs\" from the root of this\nrepo and examine the changes made.\n\n-->\n\n```typescript\nimport { uriToMultiaddr } from '@multiformats/uri-to-multiaddr'\n\nconsole.log(uriToMultiaddr('https://protocol.ai'))\n// -> /dns4/protocol.ai/tcp/443/https\n```\n\nDomain names can represent one of\n\n- `/dns4` - domain resolves to an ipv4 address (**default**)\n- `/dns6` - domain resolves to an ipv6 address\n- `/dnsaddr` - domain has a [DNSLink](https://docs.ipfs.io/guides/concepts/dnslink/) TXT record pointing to an IPFS CID\n\nThis library assumes `/dns4` when it finds a domain name in the input string.\nIt makes no attempt query DNS. To override the default assumption, you can pass\nin an options object as the second parameter to override it:\n\n```typescript\nimport { uriToMultiaddr } from '@multiformats/uri-to-multiaddr'\n\nconsole.log(uriToMultiaddr('https://protocol.ai'), { defaultDnsType: 'dns6' })\n// -> /dns6/protocol.ai/tcp/443/https\n```\n\nSee [test.js](./test.js) for the currently supported conversions.\n\n**Note**: `uri-to-multiaddr` will throw if the passed URI:\n\n- is not a valid, according the WHATWG URL spec implementation used.\n- is not supported yet\n\n## Related\n\n- [@multiformats/multiaddr-to-uri](https://github.com/multiformats/js-multiaddr-to-uri) - convert it back again\n\n# Install\n\n```console\n$ npm i @multiformats/uri-to-multiaddr\n```\n\n## Browser `<script>` tag\n\nLoading this module through a script tag will make it's exports available as `MultiformatsUriToMultiaddr` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/@multiformats/uri-to-multiaddr/dist/index.min.js\"></script>\n```\n\n# API Docs\n\n- <https://multiformats.github.io/js-uri-to-multiaddr>\n\n# License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n# Contribution\n\nUnless 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.\n","publish_time":1663775397581,"_cnpm_publish_time":1663775397581,"dist-tags":{"latest":"10.0.0"}}