{"_id":"libp2p-peer-id","_rev":"4665260","name":"libp2p-peer-id","description":"IPFS Peer Id implementation in Node.js","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"time":{"modified":"2026-04-10T22:36:40.000Z","created":"2022-01-02T08:05:24.189Z","0.2.0":"2022-01-02T08:05:24.189Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/libp2p/js-libp2p-interfaces.git"},"versions":{"0.2.0":{"name":"libp2p-peer-id","version":"0.2.0","description":"IPFS Peer Id implementation in Node.js","type":"module","types":"./dist/src/index.d.ts","exports":{".":{"import":"./dist/src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"pretest":"npm run build","test":"aegir test -f ./dist/test/*.js","test:browser":"aegir test -t browser -f ./dist/test/*.js","test:node":"aegir test -t node -f ./dist/test/*.js","test:electron":"aegir test -t electron-main -f ./dist/test/*.js","lint":"aegir ts -p check && aegir lint","release":"aegir release --docs","release-minor":"aegir release --target node --type minor --docs","release-major":"aegir release --type major --docs","build":"tsc","dep-check":"aegir dep-check dist/src/**/*.js dist/test/**/*.js"},"keywords":["IPFS"],"license":"MIT","engines":{"node":">=15.0.0"},"repository":{"type":"git","url":"git+https://github.com/libp2p/js-libp2p-interfaces.git"},"bugs":{"url":"https://github.com/libp2p/js-libp2p-interfaces/issues"},"homepage":"https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-peer-id#readme","devDependencies":{"aegir":"^36.0.1"},"dependencies":{"libp2p-interfaces":"^2.0.2","multiformats":"^9.4.5","uint8arrays":"^3.0.0"},"gitHead":"befb411101eae7eb3711405cec0c1b74a2487e33","_id":"libp2p-peer-id@0.2.0","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (darwin)","dist":{"shasum":"eb33cb726c767956462c31750cb0e5344e6f5262","size":5201,"noattachment":false,"key":"/libp2p-peer-id/-/libp2p-peer-id-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/libp2p-peer-id/download/libp2p-peer-id-0.2.0.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libp2p-peer-id_0.2.0_1641110724063_0.06657861741972315"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-02T08:05:34.250Z","publish_time":1641110724189,"_cnpm_publish_time":1641110724189}},"readme":"# libp2p-peer-id <!-- omit in toc -->\n\n> peer-ids in JavaScript\n\n## Table of Contents <!-- omit in toc -->\n\n- [Description](#description)\n- [Example](#example)\n- [Installation](#installation)\n  - [License](#license)\n    - [Contribution](#contribution)\n\n# Description\n\nA basic implementation of a peer id\n\n# Example\n\n```JavaScript\nimport { PeerId } from 'libp2p-peer-id'\n\nconst id = new PeerId(...)\n\nconsole.log(id.toCid())\n```\n\n# Installation\n\n```console\n$ npm i libp2p-peer-id\n```\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","_attachments":{},"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"},"license":"MIT"}