{"name":"@libp2p/peer-id","version":"1.1.12","keywords":["IPFS"],"license":"Apache-2.0 OR MIT","_id":"@libp2p/peer-id@1.1.12","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":"4becd254e32783ea273c68c97c21456a77e5d77b","tarball":"http://registry-npm.ywwl.com/@libp2p/peer-id/download/@libp2p/peer-id-1.1.12.tgz","fileCount":8,"integrity":"sha512-qArM39Nrpd3PBTxTqzOzuk/EH9FBUSLfgKb46ZW38ITxmrltA5vrqmktmdDCRYrZHDZTTXLk17LDJdBSSs1mkA==","signatures":[{"sig":"MEUCIDJZXJNSjtStkypDdTQItZq/7RG+JSgMZWKFB7bc8YXJAiEA/JXcpRO/mX/jB9iHIYywC9OM2++TFh+K5XdfvweI+P8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJio2bVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHZA/8C928+xFXzog+6jUbQrn+gyn/AQMFAVmaKT3Qa7itXVYKX1/Q\r\nkc8Sx45uKr7cS4KbaFrO2D0RqAddHBIje1VjnQ+i6+B+dqEKgu9UJaSnE6X8\r\nZf4uIQ1/vjkqveWkfnnJtEdBbxR4Z8HOTj/XPGgMiY6vi7SQCTn0X+CqEESa\r\nT/gJnZ8ixS/mbodkZuwhRYTidqxQwKG3CFhO9t5PqDdEA4vAXgovurvDW0Hf\r\nA40/+fNQuPKBM6YxYnkiC4EzNv/GpiAxOEajqa5WIip6iQXub1jXZnOtHp1F\r\niMXlB1Ilw02XvoFRHUuYFe3pYlWpndAWpVGfLyNC1CJfRR8sC9N8DLqMaJ0G\r\nI1VcJDCZfEeZogfKDnuA1YZTOk41flhUSa5dPHI0bU4r2GoE9hMvnbPyAwFZ\r\nNRpW4at1z4dL/3JsgQ5h8X4FCAu0N4d+/RwmQofEcsvQ95GP+D5yXJ9Lk96B\r\nAQ+JGGYhrt+XiuFcAzOMN3Y0d5mT20xr9PVHzjwTNrAq2+QD6/6LKpQsbTve\r\naU4+Yd0pRslUt1mYzp0SJPlPTdnI+LLPT+qpQUebw21KAHuNbXw/Fffy5pkj\r\nUd0lIl9etDAj2DWWiWoNwopno4vuQMB4kMxspnHD3AgkbPknA+leXOGs7nnZ\r\naWp4/cr9uYDidpWd+1fpKXTRLW8dzpEibHQ=\r\n=eJoY\r\n-----END PGP SIGNATURE-----\r\n","size":6049,"noattachment":false,"key":"/@libp2p/peer-id/-/@libp2p/peer-id-1.1.12.tgz"},"type":"module","types":"./dist/src/index.d.ts","engines":{"npm":">=7.0.0","node":">=16.0.0"},"exports":{".":{"import":"./dist/src/index.js"}},"gitHead":"d74ca1aebd196a526a59b3d3de2882941548e5c9","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":"chore","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","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":"Trivial Changes"},{"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"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"repository":{"url":"git+https://github.com/libp2p/js-libp2p-peer-id.git","type":"git"},"_npmVersion":"8.12.1","description":"Implementation of @libp2p/interface-peer-d","directories":{},"_nodeVersion":"16.15.1","dependencies":{"err-code":"^3.0.1","uint8arrays":"^3.0.0","multiformats":"^9.6.3","@libp2p/interface-peer-id":"^0.0.1"},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"_hasShrinkwrap":false,"devDependencies":{"aegir":"^37.0.7"},"_npmOperationalInternal":{"tmp":"tmp/peer-id_1.1.12_1654875860855_0.633147805448633","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":1654875861039,"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":1654875861039,"dist-tags":{"latest":"6.0.18","next":"6.0.18-fab409544"}}