{"name":"@libp2p/peer-id","version":"2.0.3","keywords":["IPFS"],"license":"Apache-2.0 OR MIT","_id":"@libp2p/peer-id@2.0.3","homepage":"https://github.com/libp2p/js-libp2p-peer-id/tree/master/packages/libp2p-peer-id#readme","bugs":{"url":"https://github.com/libp2p/js-libp2p-peer-id/issues"},"dist":{"shasum":"7299d74eae7b2526123d941bdb2d08462704c79a","tarball":"http://registry-npm.ywwl.com/@libp2p/peer-id/download/@libp2p/peer-id-2.0.3.tgz","fileCount":10,"integrity":"sha512-eZX+5ByUAzh8DrfjCan0spZGpvF7SxEBz4tOPoBMBCuKJJLr+8EokBO/5E3ceIw04f5+lAcD3CO3bccuKomp3Q==","signatures":[{"sig":"MEQCIH7VQkLphurXZZgM5p2LprknEFxS/oUNqJoJ1MyFmRbqAiA8yjvBi5KKjUnWe/qAAzQS2CJzOsHT8gV2IFw2bfAzew==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGJQ9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRBA/8Cqli2uylgKCgnwUT+oGwfE1K+MM7bx0vdUkwjaUBLPO6pMY9\r\nE20l4IVHI2pyFltXPljb0NaCM5OII4P0ewnMCUq3CAb2NCjgeMK+jp4eyHOi\r\nqX6eU865WGkeeJFKFBJ5V3KxyQzVfWc9Ovt16jYASnNJNfm45jkk4e1ktZVb\r\nE7iymEu6PjfSkjfJYcq/W1VPYaAcZZHkSTh06iswar0qbBE+yc554JMZErnq\r\nMKvVk2QwLNPMST5Z0cXTxI+ahX2uPLrmvN+qF1azZJHKmkDr+TRqC28kA85n\r\ny7v5ArdQPcUBmOovW+R6AtWSL2WA0WqQRkExMA9VRkPLkMS7riIfuqGtLcar\r\n6Fu2HPbGAkU+x1dfxFGxmzU2uat0Pgt9TtdMfr/FVAY84/gMpd8wty+ozWP4\r\n5+2KckyiJuhuCAPoK5qal+mhyJQTGj6tQqxU+2Z3EuE0uWgM23SBL2IJ1xJE\r\nvT3j6BWsrtrG/c5OtA0I5p9h+lX+vB40klWfGg9Tx7L+xKAQb9jm1XfU2ntz\r\n5FznRGhTv6mMObHogrBPtlGBkvx9X81kTsaOCoueHFn3ThkBtL9a89t4X0cs\r\nGbhr+PI2ODtMtCynYG2GfiyH4k1UbLlpXxma3YC1LKC48u0BOpNmkldbP2oG\r\nJjzR0LE/PN8+Y+rg1nFkbjkD3Rd6hm9nlQQ=\r\n=hKKr\r\n-----END PGP SIGNATURE-----\r\n","size":14169,"noattachment":false,"key":"/@libp2p/peer-id/-/@libp2p/peer-id-2.0.3.tgz"},"type":"module","types":"./dist/src/index.d.ts","engines":{"npm":">=7.0.0","node":">=16.0.0"},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"}},"gitHead":"d66bdf760f0e86b3f2d999302ebb35b291f9368f","release":{"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"release":"major","breaking":true},{"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"],"branches":["master"]},"scripts":{"lint":"aegir lint","test":"aegir test","build":"aegir build","clean":"aegir clean","release":"aegir release","dep-check":"aegir dep-check","test:node":"aegir test -t node --cov","test:chrome":"aegir test -t browser --cov","test:firefox":"aegir test -t browser -- --browser firefox","test:electron-main":"aegir test -t electron-main","test:chrome-webworker":"aegir test -t webworker","test:firefox-webworker":"aegir test -t webworker -- --browser firefox"},"typedoc":{"entryPoint":"./src/index.ts"},"_npmUser":{"name":"npm-service-account-libp2p","email":"npm-service-account+libp2p@protocol.ai"},"repository":{"url":"git+https://github.com/libp2p/js-libp2p-peer-id.git","type":"git"},"_npmVersion":"8.19.4","description":"Implementation of @libp2p/interface-peer-id","directories":{},"_nodeVersion":"18.15.0","dependencies":{"uint8arrays":"^4.0.2","multiformats":"^11.0.0","@libp2p/interfaces":"^3.2.0","@libp2p/interface-peer-id":"^2.0.0"},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"_hasShrinkwrap":false,"devDependencies":{"aegir":"^38.1.0"},"_npmOperationalInternal":{"tmp":"tmp/peer-id_2.0.3_1679332413180_0.38292615758291704","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":1679332413319,"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":1679332413319,"dist-tags":{"latest":"6.0.18","next":"6.0.18-fab409544"}}