Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moqada/5rolli-time-summarizer
Summarize time records for 5ROLLI
https://github.com/moqada/5rolli-time-summarizer
Last synced: 2 days ago
JSON representation
Summarize time records for 5ROLLI
- Host: GitHub
- URL: https://github.com/moqada/5rolli-time-summarizer
- Owner: moqada
- License: mit
- Created: 2015-12-03T16:34:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-01T14:05:27.000Z (7 months ago)
- Last Synced: 2024-10-31T13:08:20.185Z (7 days ago)
- Language: JavaScript
- Homepage: https://moqada.github.io/5rolli-time-summarizer/
- Size: 57.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 5rolli-time-summarizer
[![NPM version][npm-image]][npm-url]
[![NPM downloads][npm-download-image]][npm-download-url]
[![Build Status][travis-image]][travis-url]
[![Coverage Status][codecov-image]][codecov-url]
[![Dependency Status][daviddm-image]][daviddm-url]
[![DevDependency Status][daviddm-dev-image]][daviddm-dev-url]
[![License][license-image]][license-url]Summarize time records for [5ROLLI](https://github.com/tongariboyz/5rolli/).
## Installation
```
npm install --save 5rolli-time-summarizer
```## Usage
```javascript
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
// }
```[npm-url]: https://www.npmjs.com/package/5rolli-time-summarizer
[npm-image]: https://img.shields.io/npm/v/5rolli-time-summarizer.svg?style=flat-square
[npm-download-url]: https://www.npmjs.com/package/5rolli-time-summarizer
[npm-download-image]: https://img.shields.io/npm/dt/5rolli-time-summarizer.svg?style=flat-square
[travis-url]: https://travis-ci.org/moqada/5rolli-time-summarizer
[travis-image]: https://img.shields.io/travis/moqada/5rolli-time-summarizer.svg?style=flat-square
[daviddm-url]: https://david-dm.org/moqada/5rolli-time-summarizer
[daviddm-image]: https://img.shields.io/david/moqada/5rolli-time-summarizer.svg?style=flat-square
[daviddm-dev-url]: https://david-dm.org/moqada/5rolli-time-summarizer#info=devDependencies
[daviddm-dev-image]: https://img.shields.io/david/dev/moqada/5rolli-time-summarizer.svg?style=flat-square
[codecov-url]: https://codecov.io/github/moqada/5rolli-time-summarizer
[codecov-image]: https://img.shields.io/codecov/c/github/moqada/5rolli-time-summarizer.svg?style=flat-square
[license-url]: http://opensource.org/licenses/MIT
[license-image]: https://img.shields.io/npm/l/5rolli-time-summarizer.svg?style=flat-square