{"_id":"5rolli-time-summarizer","_rev":"3-29279b3fa911367d5a1b2a48e1dbc6b4","name":"5rolli-time-summarizer","description":"Summarize time records for 5ROLLI","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"5rolli-time-summarizer","description":"Summarize time records for 5ROLLI","version":"0.1.0","author":{"name":"moqada","email":"moqada@gmail.com"},"bugs":{"url":"https://github.com/moqada/5rolli-time-summarizer/issues"},"dependencies":{},"devDependencies":{"babel-cli":"^6.2.0","babel-core":"^6.2.1","babel-plugin-add-module-exports":"^0.1.1","babel-plugin-espower":"^2.0.0","babel-preset-es2015":"^6.1.18","chokidar-cli":"^1.2.0","codecov.io":"^0.1.6","esdoc":"^0.4.3","eslint":"^1.10.3","eslint-config-moqada":"^9.0.0","gh-pages":"^0.6.0","isparta":"^4.0.0","mocha":"^2.3.4","npm-run-all":"^1.3.3","power-assert":"^1.2.0"},"files":["lib"],"homepage":"https://github.com/moqada/5rolli-time-summarizer#readme","keywords":["5rolli","summarize","time"],"license":"MIT","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/moqada/5rolli-time-summarizer.git"},"scripts":{"build":"babel src --out-dir lib","codecov":"cat coverage/lcov.info | codecov","deploy":"npm-run-all doc gh-pages","doc":"esdoc -c esdoc.json","gh-pages":"gh-pages -d doc","lint":"eslint --cache {src,test}","postpublish":"npm run deploy","prebuild":"rm -rf lib","predoc":"rm -rf doc","prepublish":"git diff --exit-code && npm run --if-present build","pretest":"rm -rf coverage","test":"npm-run-all lint test:coverage","test:coverage":"babel-node $(npm bin)/isparta cover --report text --report html --report lcovonly _mocha -- test/{**/,}*spec.js","watch":"npm-run-all --parallel watch:*","watch:lint":"chokidar src test -c 'npm run -s lint'","watch:src":"babel --out-dir=lib --watch src","watch:test":"mocha --watch test/{**/,}*spec.js"},"gitHead":"fc79a3e6d2107de4ec5bd3e2d05abbdb5902c6fa","_id":"5rolli-time-summarizer@0.1.0","_shasum":"feeabf570bc95114f5c78033c95b4f5c90e7e330","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"moqada","email":"moqada@gmail.com"},"dist":{"shasum":"feeabf570bc95114f5c78033c95b4f5c90e7e330","tarball":"https://registry.npmjs.org/5rolli-time-summarizer/-/5rolli-time-summarizer-0.1.0.tgz","integrity":"sha512-myook6u9dI4dnt9QQzEHtxJFxqgu+2N8w9WbVW00ny8WNgy17wPqVKcWGe1H1/JjDMYSIYGfHoh7YlZpCwlbFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGulKPkXmKrq4wfqkKcK7GlJ84f9/evympB2Vd9TGtuqAiAh14exuic9cLJAJLUFyJacUldWJrFJAqOf5hut8+8jSA=="}]},"maintainers":[{"name":"moqada","email":"moqada@gmail.com"}]}},"readme":"# 5rolli-time-summarizer\n\n[![NPM version][npm-image]][npm-url]\n[![NPM downloads][npm-download-image]][npm-download-url]\n[![Build Status][travis-image]][travis-url]\n[![Coverage Status][codecov-image]][codecov-url]\n[![Dependency Status][daviddm-image]][daviddm-url]\n[![DevDependency Status][daviddm-dev-image]][daviddm-dev-url]\n[![License][license-image]][license-url]\n\nSummarize time records for [5ROLLI](https://github.com/tongariboyz/5rolli/).\n\n\n## Installation\n\n```\nnpm install --save 5rolli-time-summarizer\n```\n\n\n## Usage\n\n```javascript\nimport summarizer from '5rolli-time-summarizer';\n\nconst times = [\n  {es50: 60, es90: 200, spent: 100},\n  {es50: 120, es90: 300, spent: undefined},\n  {es50: 15, es90: 45, spent: undefined},\n  {es50: 60, es90: 200, spent: 300}\n];\nconst summary = summarizer(times);\nconsole.log(summary);\n// {\n//   buffer: 72500,\n//   es: 524,\n//   es50: 255,\n//   es90: 745,\n//   spent: 400\n// }\n```\n\n[npm-url]: https://www.npmjs.com/package/5rolli-time-summarizer\n[npm-image]: https://img.shields.io/npm/v/5rolli-time-summarizer.svg?style=flat-square\n[npm-download-url]: https://www.npmjs.com/package/5rolli-time-summarizer\n[npm-download-image]: https://img.shields.io/npm/dt/5rolli-time-summarizer.svg?style=flat-square\n[travis-url]: https://travis-ci.org/moqada/5rolli-time-summarizer\n[travis-image]: https://img.shields.io/travis/moqada/5rolli-time-summarizer.svg?style=flat-square\n[daviddm-url]: https://david-dm.org/moqada/5rolli-time-summarizer\n[daviddm-image]: https://img.shields.io/david/moqada/5rolli-time-summarizer.svg?style=flat-square\n[daviddm-dev-url]: https://david-dm.org/moqada/5rolli-time-summarizer#info=devDependencies\n[daviddm-dev-image]: https://img.shields.io/david/dev/moqada/5rolli-time-summarizer.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/moqada/5rolli-time-summarizer\n[codecov-image]: https://img.shields.io/codecov/c/github/moqada/5rolli-time-summarizer.svg?style=flat-square\n[license-url]: http://opensource.org/licenses/MIT\n[license-image]: https://img.shields.io/npm/l/5rolli-time-summarizer.svg?style=flat-square\n","maintainers":[{"name":"moqada","email":"moqada@gmail.com"}],"time":{"modified":"2022-06-12T14:08:13.701Z","created":"2015-12-03T16:53:23.209Z","0.1.0":"2015-12-03T16:53:23.209Z"},"homepage":"https://github.com/moqada/5rolli-time-summarizer#readme","keywords":["5rolli","summarize","time"],"repository":{"type":"git","url":"git+https://github.com/moqada/5rolli-time-summarizer.git"},"author":{"name":"moqada","email":"moqada@gmail.com"},"bugs":{"url":"https://github.com/moqada/5rolli-time-summarizer/issues"},"license":"MIT","readmeFilename":"README.md"}