@libp2p/interface-metrics
@libp2p/interface-metrics
npm i @libp2p/interface-metrics
@libp2p/interface-metrics

@libp2p/interface-metrics

Contains test suites and interfaces you can use to implement the various components of js libp2p.

by libp2p

3.0.0 (see all)License:Apache-2.0 OR MITTypeScript:Built-In
npm i @libp2p/interface-metrics
Readme

@libp2p/interface-metrics

libp2p.io IRC Discuss codecov CI

Metrics interface for libp2p

Table of contents

Install

$ npm i @libp2p/interface-metrics

Using the Test Suite

You can also check out the internal test suite to see the setup in action.

const tests = require('libp2p-interfaces-compliance-tests/keys')
const yourKeys = require('./your-keys')

tests({
  setup () {
    // Set up your keys if needed, then return it
    return yourKeys
  },
  teardown () {
    // Clean up your keys if needed
  }
})

License

Licensed under either of

Contribution

Unless 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.

Downloads/wk

3.2K

GitHub Stars

68

LAST COMMIT

6mos ago

MAINTAINERS

6

CONTRIBUTORS

35

OPEN ISSUES

14

OPEN PRs

3
VersionTagPublished
3.0.0
latest
2mos ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate