5rolli-time-summarizer 中文文档教程
5rolli-time-summarizer
汇总 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
// }
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
// }