{"name":"@libp2p/peer-id","version":"1.0.0","keywords":["IPFS"],"license":"MIT","_id":"@libp2p/peer-id@1.0.0","homepage":"https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-peer-id#readme","bugs":{"url":"https://github.com/libp2p/js-libp2p-interfaces/issues"},"dist":{"shasum":"c9960ca66186897c2a829ce52f600f4943dbbfb3","tarball":"http://registry-npm.ywwl.com/@libp2p/peer-id/download/@libp2p/peer-id-1.0.0.tgz","fileCount":8,"integrity":"sha512-kzu3HBFeqKNxndUYnhsYVgt+GMtT6YeOO+q9E9GXo2MyhqmAvlYiGxj1dvyUs5Xtnhv+VXGVCijkLvoWcD+uHw==","signatures":[{"sig":"MEUCICZRmNZrpR+0fnv7Fs/6JjvzluGOGjmMZdRFXSWa26zDAiEAxrIfIN9VI9Jb1aixlS6g4ruoXuWjJ+wLL/LQHSlsI7A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22892,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1iP9CRA9TVsSAnZWagAAeDoP/2pJvmdNNinsdJXMN+bm\n9EoBTWMGMfQp6pGwmV/OFsbH2A243jSyKj955j/Q0CMBELuFpSun0iVS5eWg\nFSA6L1hVlTDPxpMJISBvOsYO0/3sFgCvvKI79VFfxA+5asBN1rJehX9RxCF3\nz4t4F0P5uaWlh78ifOOuKChbEaK4wVOcpeIuEt/8QMRptJLlM7lzHQSjyeQv\ntRK96VfXsJxIyLD3hgni7yce1HYg9r9AqcV/Lofgi3P+QPVTcgJMPOfzRJdx\nGV1bgOfOUPthR+1IlYp5z4dBqlUix6RskRgMk075hGkpC3VvcVL24TAr3KNn\nAl+z/6SiMOInEyG5bsQFCJPZ46FwMk4Ny0RdIpykxHrWzoXv1rcGb37CPKLD\n/Sd/NtPQA0Q3vvoxGClCa/L0r/OA9mS5kT6yLt25H6R0jn2nGAp6hKeu51qQ\nWlB8/1VKeuYmqPmhq0Y2erYRzaditlUMP62qsheSXjHVPgZmhnkOtP06mYgh\nLrEA3m3WemAgdhltPReeFE7CsB0/0csDK/g+uFN0cMNgFprjh11WUm93TFHD\nImKAaYA1H4HiRA7eEzZg5NAvGZ7rrFRfSa8JX+8o+VlMHqNPl1SsiHuh7OXO\nUJUHlHz4lE3Tp3jO548t01b/IvBtzqWwV+YDPYY1y89CtQ8ABhVxVQxqzz7N\nTrzm\r\n=YKxw\r\n-----END PGP SIGNATURE-----\r\n","size":5100,"noattachment":false,"key":"/@libp2p/peer-id/-/@libp2p/peer-id-1.0.0.tgz"},"type":"module","types":"./dist/src/index.d.ts","engines":{"node":">=15.0.0"},"exports":{".":{"import":"./dist/src/index.js"}},"gitHead":"254431dabc499f804f02dabf39f1989aa377451a","scripts":{"lint":"aegir lint","test":"aegir test -f ./dist/test/**/*.js","build":"tsc","pretest":"npm run build","dep-check":"aegir dep-check dist/src/**/*.js","test:node":"npm run test -- -t node --cov","test:chrome":"npm run test -- -t browser","test:firefox":"npm run test -- -t browser -- --browser firefox","test:electron-main":"npm run test -- -t electron-main","test:chrome-webworker":"npm run test -- -t webworker","test:firefox-webworker":"npm run test -- -t webworker -- --browser firefox"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"repository":{"url":"git+https://github.com/libp2p/js-libp2p-interfaces.git","type":"git"},"_npmVersion":"7.24.2","description":"IPFS Peer Id implementation in Node.js","directories":{},"_nodeVersion":"16.13.1","dependencies":{"uint8arrays":"^3.0.0","multiformats":"^9.4.5","@libp2p/interfaces":"^0.2.0"},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"_hasShrinkwrap":false,"devDependencies":{"aegir":"^36.1.3"},"_npmOperationalInternal":{"tmp":"tmp/peer-id_1.0.0_1641423869545_0.22601299101116235","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":1641423869694,"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":1641423869694,"dist-tags":{"latest":"6.0.18","next":"6.0.18-fab409544"}}