{"name":"@libp2p/interface","version":"1.1.0-ba7089984","keywords":["interface","libp2p"],"license":"Apache-2.0 OR MIT","_id":"@libp2p/interface@1.1.0-ba7089984","homepage":"https://github.com/libp2p/js-libp2p/tree/main/packages/interface#readme","bugs":{"url":"https://github.com/libp2p/js-libp2p/issues"},"dist":{"shasum":"cac9910b68513cbbe4f11bb32ff21870e874f128","tarball":"http://registry-npm.ywwl.com/@libp2p/interface/download/@libp2p/interface-1.1.0-ba7089984.tgz","fileCount":124,"integrity":"sha512-u66rSExUKzPE0OUGcINzTf4nBq+k0Bcx+t0cU2hQ2oB0D8YzLqBrUoJK9F1Zg81njSisVy3bZ0Dwe737HNZdtg==","signatures":[{"sig":"MEYCIQDI+G6A1ppix7RyPKlnh3jATiDsc8i4NccosXT2lmLVTgIhALTy9m6AgfiUl75E3BI6A9FquigZnjCelzPH0ITfEQ+Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@libp2p%2finterface@1.1.0-ba7089984","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":215356,"size":49310,"noattachment":false,"key":"/@libp2p/interface/-/@libp2p/interface-1.1.0-ba7089984.tgz"},"type":"module","types":"./dist/src/index.d.ts","browser":{"events":"./dist/src/events.browser.js"},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"}},"gitHead":"ba70899842067dd4388bd2db0a78d9a79a6297e1","scripts":{"lint":"aegir lint","build":"aegir build","clean":"aegir clean","dep-check":"aegir dep-check -i @libp2p/utils"},"_npmUser":{"name":"npm-service-account-libp2p","email":"npm-service-account+libp2p@protocol.ai"},"repository":{"url":"git+https://github.com/libp2p/js-libp2p.git","type":"git"},"_npmVersion":"9.9.2","description":"The interface implemented by a libp2p node","directories":{},"_nodeVersion":"20.10.0","dependencies":{"it-pushable":"^3.2.1","multiformats":"^13.0.0","uint8arraylist":"^2.4.3","it-stream-types":"^2.0.1","progress-events":"^1.0.0","@multiformats/multiaddr":"^12.1.10"},"eslintConfig":{"extends":"ipfs","parserOptions":{"project":true,"sourceType":"module"}},"react-native":{"./dist/src/events.js":"./dist/src/events.browser.js"},"publishConfig":{"access":"public","provenance":true},"typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"aegir":"^41.0.2"},"_npmOperationalInternal":{"tmp":"tmp/interface_1.1.0-ba7089984_1704479364262_0.7222100037925081","host":"s3://npm-registry-packages"},"readme":"# @libp2p/interface\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> The interface implemented by a libp2p node\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\nExports a `Libp2p` type for modules to use as a type argument.\n\n## Example\n\n```typescript\nimport type { Libp2p } from '@libp2p/interface'\n\nfunction doSomethingWithLibp2p (node: Libp2p) {\n  // ...\n}\n```\n\n# Install\n\n```console\n$ npm i @libp2p/interface\n```\n\n# API Docs\n\n- <https://libp2p.github.io/js-libp2p/modules/_libp2p_interface.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/interface/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](https://github.com/libp2p/js-libp2p/blob/main/packages/interface/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":1704479364418,"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":1704479364418,"dist-tags":{"latest":"3.4.0","next":"3.4.0-228942556"}}