3.0.4 • Published 10 months ago

@libp2p/tracked-map v3.0.4

Weekly downloads
-
License
Apache-2.0 OR MIT
Repository
github
Last release
10 months ago

@libp2p/tracked-map

libp2p.io Discuss codecov CI

Allows tracking of statistics while libp2p is running

Table of contents

Install

$ npm i @libp2p/tracked-map

Browser <script> tag

Loading this module through a script tag will make it's exports available as Libp2pTrackedMap in the global namespace.

<script src="https://unpkg.com/@libp2p/tracked-map/dist/index.min.js"></script>

Description

A map that reports it's size to the libp2p Metrics system.

If metrics are disabled a regular map is used.

Example

import { trackedMap } from '@libp2p/tracked-map'

const map = trackedMap<string, string>({ metrics })

map.set('key', 'value')

API Docs

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.

3.0.4

10 months ago

3.0.3-3dfc236e

11 months ago

3.0.3-d853d124

11 months ago

3.0.3

11 months ago

3.0.3-ea8a0637

11 months ago

3.0.3-ab0e3980

11 months ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.0

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.2

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.0

2 years ago