{"name":"@libp2p/peer-id","version":"0.0.0","license":"(Apache-2.0 OR MIT)","_id":"@libp2p/peer-id@0.0.0","dist":{"shasum":"16a746186c17f2e8485257a4faa584ae810085c6","tarball":"http://registry-npm.ywwl.com/@libp2p/peer-id/download/@libp2p/peer-id-0.0.0.tgz","fileCount":1,"integrity":"sha512-0PIbv2gQ0NGvZf1+39UDEmlpFoWVxcFj3VsZssUcx8hW4gzl5Vee8/OaXa2ezzRyY1A86jyGatfM/vEizLXArw==","signatures":[{"sig":"MEQCIG3QWNo3k5c/i5X4NBqsNJeutQxmwehe02A6cA1N5gSAAiAPqSxP3zD9XyRX+68XGyL7TvwR6HROLr0novPX0gtUwg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":133,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1CO5CRA9TVsSAnZWagAAwBIP/RPQGhPr62IAjqGEehIM\nRMZvShYJHc6ZQmBueD4IDD+XaSFDe09N5w51bNbU/CSIM3tpnGkGZz7pY62y\nrmZbXraLameXFJbbT3Uc6kW51yQWPdu9BePrZTOMK/+3+fLGDgcYrXtJL4Iq\nUM8T+EE1dB8jWphh1LiGc2a9PhQI3kKQvx1NxAQYlJHdQw0Q5+AhnVv3MxWD\nc7196S3n7xHifXLN2k/l59P75tQap7hz9Mz4UTECgr02t6ERcGx4Hpj3+N2a\nq0g3LJh66XpsrSnXQ0NuPFOu3z5g8qjCIPNag8DrfQRRD/BPtgV6U1cL4MD2\nP9YsOs0ioGL14SOfWQR1wxevAew1aU1QqWyIt8vm3C63JslKtulwb17xlhNy\n+hzwj2U072EMd8ljc/L6TKLFgyUA+HEzAGaPf+iyvt8T6c/nXIeAahw0yjUq\njJHbvHg2yWeF8JP9GkqNbCto4TgTbw1mHV1iqwglnbYGRFizLgW6l1IAbcgW\nY/FXmEFJd7L65qUwrojE2X+qlPNvriA0C6o+dv1UllK9ijLO3zn5tH395En2\nzCKqPBsOFCxzidHDHjugHGMtJ338ZL3pkUbnYLr5fSB8YrqtXjhqIPDCSNYz\neM42YeziZSXCYn2ySg8WFFK4DdrW9spu9hAJo2R+d3yx8KzmITJr40NCPZZA\n7vsZ\r\n=iZPn\r\n-----END PGP SIGNATURE-----\r\n","size":202,"noattachment":false,"key":"/@libp2p/peer-id/-/@libp2p/peer-id-0.0.0.tgz"},"main":"index.js","_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"_npmVersion":"8.1.0","description":"","directories":{},"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/peer-id_0.0.0_1641292729002_0.22674980946773893","host":"s3://npm-registry-packages"},"readme":"# @libp2p/peer-id\n\n[![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)\n[![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)\n[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p)\n[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=main\\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amain)\n\n> Implementation of @libp2p/interface-peer-id\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\nAn implementation of a peer id\n\n## Example\n\n```TypeScript\nimport { peerIdFromString } from '@libp2p/peer-id'\nconst peer = peerIdFromString('k51qzi5uqu5dkwkqm42v9j9kqcam2jiuvloi16g72i4i4amoo2m8u3ol3mqu6s')\n\nconsole.log(peer.toCID()) // CID(bafzaa...)\nconsole.log(peer.toString()) // \"12D3K...\"\n```\n\n# Install\n\n```console\n$ npm i @libp2p/peer-id\n```\n\n## Browser `<script>` tag\n\nLoading this module through a script tag will make it's exports available as `Libp2pPeerId` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/@libp2p/peer-id/dist/index.min.js\"></script>\n```\n\n# API Docs\n\n- <https://libp2p.github.io/js-libp2p/modules/_libp2p_peer_id.html>\n\n# License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](https://github.com/libp2p/js-libp2p/blob/main/packages/peer-id/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](https://github.com/libp2p/js-libp2p/blob/main/packages/peer-id/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":1641292729146,"maintainers":[{"name":"jacobheun","email":"jacobheun@gmail.com"},{"name":"npm-service-account-libp2p","email":"npm-service-account+libp2p@ipfs.tech"},{"name":"alanshaw","email":"alan138@gmail.com"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"daviddias","email":"mail@daviddias.me"}],"_cnpm_publish_time":1641292729146,"dist-tags":{"latest":"6.0.18","next":"6.0.18-fab409544"}}