{"name":"@libp2p/interface","version":"0.1.2-13f5b48e","keywords":["interface","libp2p"],"license":"Apache-2.0 OR MIT","_id":"@libp2p/interface@0.1.2-13f5b48e","homepage":"https://github.com/libp2p/js-libp2p/tree/master/packages/interface#readme","bugs":{"url":"https://github.com/libp2p/js-libp2p/issues"},"dist":{"shasum":"283041a8e195598a3b41eba435286077f629a4c9","tarball":"http://registry-npm.ywwl.com/@libp2p/interface/download/@libp2p/interface-0.1.2-13f5b48e.tgz","fileCount":129,"integrity":"sha512-RnyBd4LDprvwUEg85wjrUBIGJrVO0PZ9qtfYt6Q+UpW5MqYuDTNlePJ8tFQx6v+WAeSNKBF0rAB7/yPomZirKw==","signatures":[{"sig":"MEQCIGkjSu0ddvUawtG3KeiHJTk6tjcDZBF9l1/LmT4qZY3aAiAxZjWstP3Qob/opoKgLNRNayv2YWMBDyTJ2e4tJ5XEfA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":253703,"size":56382,"noattachment":false,"key":"/@libp2p/interface/-/@libp2p/interface-0.1.2-13f5b48e.tgz"},"type":"module","types":"./dist/src/index.d.ts","exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"},"./keys":{"types":"./dist/src/keys/index.d.ts","import":"./dist/src/keys/index.js"},"./errors":{"types":"./dist/src/errors.d.ts","import":"./dist/src/errors.js"},"./events":{"types":"./dist/src/events.d.ts","import":"./dist/src/events.js"},"./pubsub":{"types":"./dist/src/pubsub/index.d.ts","import":"./dist/src/pubsub/index.js"},"./record":{"types":"./dist/src/record/index.d.ts","import":"./dist/src/record/index.js"},"./metrics":{"types":"./dist/src/metrics/index.d.ts","import":"./dist/src/metrics/index.js"},"./peer-id":{"types":"./dist/src/peer-id/index.d.ts","import":"./dist/src/peer-id/index.js"},"./keychain":{"types":"./dist/src/keychain/index.d.ts","import":"./dist/src/keychain/index.js"},"./peer-info":{"types":"./dist/src/peer-info/index.d.ts","import":"./dist/src/peer-info/index.js"},"./startable":{"types":"./dist/src/startable.d.ts","import":"./dist/src/startable.js"},"./transport":{"types":"./dist/src/transport/index.d.ts","import":"./dist/src/transport/index.js"},"./connection":{"types":"./dist/src/connection/index.d.ts","import":"./dist/src/connection/index.js"},"./peer-store":{"types":"./dist/src/peer-store/index.d.ts","import":"./dist/src/peer-store/index.js"},"./peer-routing":{"types":"./dist/src/peer-routing/index.d.ts","import":"./dist/src/peer-routing/index.js"},"./stream-muxer":{"types":"./dist/src/stream-muxer/index.d.ts","import":"./dist/src/stream-muxer/index.js"},"./peer-discovery":{"types":"./dist/src/peer-discovery/index.d.ts","import":"./dist/src/peer-discovery/index.js"},"./stream-handler":{"types":"./dist/src/stream-handler/index.d.ts","import":"./dist/src/stream-handler/index.js"},"./content-routing":{"types":"./dist/src/content-routing/index.d.ts","import":"./dist/src/content-routing/index.js"},"./peer-store/tags":{"types":"./dist/src/peer-store/tags.d.ts","import":"./dist/src/peer-store/tags.js"},"./connection-gater":{"types":"./dist/src/connection-gater/index.d.ts","import":"./dist/src/connection-gater/index.js"},"./metrics/tracked-map":{"types":"./dist/src/metrics/tracked-map.d.ts","import":"./dist/src/metrics/tracked-map.js"},"./stream-muxer/stream":{"types":"./dist/src/stream-muxer/stream.d.ts","import":"./dist/src/stream-muxer/stream.js"},"./connection-encrypter":{"types":"./dist/src/connection-encrypter/index.d.ts","import":"./dist/src/connection-encrypter/index.js"}},"gitHead":"13f5b48e4cfbd8c6591674f985088246949d5f02","scripts":{"lint":"aegir lint","test":"aegir test","build":"aegir build","clean":"aegir clean","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":"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.8.1","description":"The interface implemented by a libp2p node","directories":{},"_nodeVersion":"18.17.1","dependencies":{"p-defer":"^4.0.0","it-pushable":"^3.2.0","multiformats":"^12.0.1","uint8arraylist":"^2.4.3","it-stream-types":"^2.0.1","abortable-iterator":"^5.0.1","@multiformats/multiaddr":"^12.1.5"},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"aegir":"^40.0.8","sinon":"^15.1.2","sinon-ts":"^1.0.0","@types/sinon":"^10.0.15"},"_npmOperationalInternal":{"tmp":"tmp/interface_0.1.2-13f5b48e_1693504314234_0.32520095089562373","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":1693504314515,"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":1693504314515,"dist-tags":{"latest":"3.4.0","next":"3.4.0-228942556"}}