Socket
Socket
Sign inDemoInstall

@libp2p/tracked-map

Package Overview
Dependencies
29
Maintainers
6
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @libp2p/tracked-map

Allows tracking of statistics while libp2p is running


Version published
Weekly downloads
1.9K
decreased by-31.28%
Maintainers
6
Install size
2.68 MB
Created
Weekly downloads
 

Changelog

Source

3.0.4 (2023-07-20)

Trivial Changes

  • Update .github/workflows/stale.yml [skip ci] (54b32ce)

Dependencies

  • dev: bump aegir from 39.0.13 to 40.0.0 (#33) (ae7d17b)

Readme

Source

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

Keywords

FAQs

Last updated on 20 Jul 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc