Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apm

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apm

Actions per minute! Or any other time, actually.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

apm

Actions per minute! Or any other time, actually.

API

default class APM ({accuracy = 1000, timeSpan = 60000})

import APM from 'apm';

const apm = new APM({
	accuracy: 500,
	timeSpan: 30000
});

setInterval(() => {
	apm.add('example', 1);
}, 500);

setTimeout(() => {
	console.log(apm.get('example')); // 60
}, 30000);

add (id, amount)

Adds amount to id.

get (id)

Returns the APM (or per timeSpan) for id.

Keywords

FAQs

Package last updated on 29 Jun 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc