Socket
Book a DemoInstallSign in
Socket

@basemaps/metrics

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@basemaps/metrics

Simple timing metric tracker for NodeJS

latest
Source
npmnpm
Version
4.11.1
Version published
Maintainers
2
Created
Source

@basemaps/metrics

Simple timing metric tracker for NodeJS

Usage


import { Metrics } from '@basemaps/metrics';

const metrics = new Metrics();

metrics.start('timer');
const duration = metrics.end('timer') // 0.1 (in ms)

const allMetrics = metrics.metrics // { timer: 1e6 }


// Unfinished
metrics.start('timer');

metrics.unfinished // ['timer']

FAQs

Package last updated on 31 Aug 2020

Did you know?

Socket

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