New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

time-per

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

time-per

Assuming an operation was completed a specific amount of times in a timeframe, calculate the operations on average that were completed every specified unit of time.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Times per timeframe Travis CI Build Status

Assuming an operation was completed a specific amount of times in a timeframe, calculate the operations on average that were completed every specified unit of time.

NPM Badge

Install

npm install time-per

Usage

const timePer = require("time-per")

const timesPressed = 2
const secsPassed = 15

`User will press the button ${timePer(timesPressed, secsPassed, 60)} per minute`
//=> "User will press the button 8 times per minute"

API

timePer(num, time, est)

num

Type: number

The amount of times the operation was completed.

time

Type: number

The amount of time it took for all the operations to complete.

est

Type: number

The units of time to estimate the operation amount for.

Keywords

math

FAQs

Package last updated on 25 Oct 2019

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