5rolli-time-summarizer
v0.1.0
Published
Summarize time records for 5ROLLI
Downloads
4
Readme
5rolli-time-summarizer
Summarize time records for 5ROLLI.
Installation
npm install --save 5rolli-time-summarizer
Usage
import summarizer from '5rolli-time-summarizer';
const times = [
{es50: 60, es90: 200, spent: 100},
{es50: 120, es90: 300, spent: undefined},
{es50: 15, es90: 45, spent: undefined},
{es50: 60, es90: 200, spent: 300}
];
const summary = summarizer(times);
console.log(summary);
// {
// buffer: 72500,
// es: 524,
// es50: 255,
// es90: 745,
// spent: 400
// }