Skip to content

crzidea/cycle-statistics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cycle Statistics

Build Status npm version

This module would be useful for statistics.

Install

npm install cycle-statistics

Example

const CycleStatistics = require('cycle-statistics')

const statistics = new CycleStatistics.Max
statistics.push(2)      // => 2
statistics.push(1)      // => 2
statistics.push(3)      // => 3
statistics.restart()    // => 3
+statistics             // => 3
statistics.push(2)      // => 2
statistics.push(1)      // => 2
statistics.push(3)      // => 3

Statistic Types

  • Last (default)
  • Max
  • Min
  • Duration

About

This module would be useful for statistics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published