Socket
Book a DemoInstallSign in
Socket

bodewell-metric

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bodewell-metric

Bodewell system monitor resource metric

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Bodewell Resource Metric

const Metric = require("bodewell-metric");

var metric = new Metric();

assert(metric.valueOf() === undefined);

metric.record(42);
assert(metric.valueOf() === 42);

metric.record(13);
assert(metric.valueOf() === 42);

metric.recorded().forEach(when => {
    console.log(sample.when, sample.value);
});

FAQs

Package last updated on 15 Dec 2016

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