{"name":"@multiformats/uri-to-multiaddr","version":"6.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":"6424bafa274b9178e29ae1ada5098ba47af850e1","_id":"@multiformats/uri-to-multiaddr@6.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-ACgRTpA3xG93+hAgfbwR57VBkbMpVW3508a4uJdPoL3+9xyc82ec7gvIomEwkjILEh6AJfdU7guW1SAvAAyFqw==","shasum":"0379097fe4f787bdf8cb3d920eea1f67855a8b66","tarball":"http://registry-npm.ywwl.com/@multiformats/uri-to-multiaddr/download/@multiformats/uri-to-multiaddr-6.0.0.tgz","fileCount":8,"unpackedSize":17007,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICK4FKFa29quxt9ATaoYq2BY5qhS4NQS88AC5NpZqNrFAiEA/EvHwPoGq6ycG3ZxPUL1Ou3VC2JL0m87yi6xfMNOdac="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKy73ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6shAApO1ovWpHcjPpJ5mMcod5xg7LGkWSeHZx3lfvkno5fJK8xajE\r\n9BWLhQ97JNXWj72tNtlyEz966lQ6GnORHi2uUle6PvIVz/75p//NrVAr4FGr\r\njuZcsC1EkBlOuOsqOfza4K68q9ZjYgfQyviDgtiAY9YyNOVqGxyON8womYel\r\nyEgjkQz128G0cw9wnqtvpCmw3tCjWs+r8FNYlQopy1+jB6lLvXtyErUPjndi\r\nSt2lfS/LENXRF5WqlkNX0UaOQJrKP+C5HQGzYkxYdQoJYAx/DJHAOJEU1QgO\r\n7hB7IC/E/c9bQ/lJKiJiParZn8xRZqpPC3Dk9mBWPwYTOdKkzVLC5YYa/4T+\r\nlmWNzXL8PjYjTT2F+sNXpeiu3uhOEFXppJ291Zoz0Mxg1tdsSx9RBxCQZRhH\r\nh3MEL6g3NkurPa4zHv2nEVrLGKgNu7YaOu0nw6/TVSInMmg7BybyCbtq+dpv\r\nBj6rfWlnhder9MGC5FT6Xic4/LCe5Rb5rZrLgwZ9ZPWquoyCSrxz4P2emtEp\r\nrYYOev6kohUa2WiV8pgl9zY3HU0tBJg2Ks0LQRCaS2lBJsEZXzhAsDi/4BY7\r\nDqIzvkk/R65KwapAvHNDhyukrHcaXrmyQsEV2w3OvxOSOZCVV9AC+4lttTtL\r\n9xTYeh5pNpKoAOcwMWc6AyiDdmyhVdBAjgQ=\r\n=Nfhd\r\n-----END PGP SIGNATURE-----\r\n","size":4748,"noattachment":false,"key":"/@multiformats/uri-to-multiaddr/-/@multiformats/uri-to-multiaddr-6.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_6.0.0_1663774455602_0.20368335368577384"},"_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":1663774455885,"_cnpm_publish_time":1663774455885,"dist-tags":{"latest":"10.0.0"}}