{"_id":"moment-round","_rev":"5-062ce413939f651f84dfe803631f3fa9","name":"moment-round","description":"Date rounding for Moment.js","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"moment-round","version":"1.0.0","description":"Date rounding for Moment.js","keywords":["moment","moment.js","date","round"],"homepage":"https://github.com/WebDevTmas/moment-round","bugs":{"url":"https://github.com/WebDevTmas/moment-round/issues"},"license":"CC-BY-SA-3.0","author":{"name":"Thomas Vanderhaeghen","email":"info@tmas.me","url":"http://www.tmas.me"},"main":"./dist/moment-round","directories":{"lib":"./lib"},"repository":{"type":"git","url":"git+https://git@github.com/WenDevTmas/moment-round.git"},"scripts":{"build":"gulp deploy","test":"gulp test"},"devDependencies":{"mocha":">=2.1.0","gulp":">=3.0.0","gulp-uglify":">= 1.2.0","gulp-rename":">= 1.2.2","gulp-mocha":">= 2.1.2","should":">= 7.0.0"},"peerDependencies":{"moment":">= 2"},"gitHead":"f9486ca6ecb8afebeb7d3dd6e1203fda973c0473","_id":"moment-round@1.0.0","_shasum":"3cf8f577e22a50b4f41aa7668d62a989bc64250e","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tmas","email":"info@tmas.me"},"dist":{"shasum":"3cf8f577e22a50b4f41aa7668d62a989bc64250e","tarball":"https://registry.npmjs.org/moment-round/-/moment-round-1.0.0.tgz","integrity":"sha512-tPJnJkBY5V7yG7MenIPIhhCLepg4C45V01aMK/2Dos+xiQAzyyYkInGrn8rGYQgIX3Mdrm4bF0EMIBV1fK1avw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1LbhZYPfCtLVzFifT+LoJSUixX0RQCpYccoN3ugMxdQIgcgvO2cc1tHB1rfs0vc2+5ikJWBSIvqZok11NZCTTAcc="}]},"maintainers":[{"name":"tmas","email":"info@tmas.me"}]},"1.0.1":{"name":"moment-round","version":"1.0.1","description":"Date rounding for Moment.js","keywords":["moment","moment.js","date","round"],"homepage":"https://github.com/WebDevTmas/moment-round","bugs":{"url":"https://github.com/WebDevTmas/moment-round/issues"},"license":"CC-BY-SA-3.0","author":{"name":"Thomas Vanderhaeghen","email":"info@tmas.me","url":"http://www.tmas.me"},"main":"./dist/moment-round","directories":{"lib":"./lib"},"repository":{"type":"git","url":"git+https://git@github.com/WenDevTmas/moment-round.git"},"scripts":{"build":"gulp deploy","test":"gulp test"},"devDependencies":{"mocha":">=2.1.0","gulp":">=3.0.0","gulp-uglify":">= 1.2.0","gulp-rename":">= 1.2.2","gulp-mocha":">= 2.1.2","should":">= 7.0.0"},"peerDependencies":{"moment":">= 2"},"gitHead":"8fe95ed9f04944599e45495b1a34e8bee2c4b922","_id":"moment-round@1.0.1","_shasum":"5baf2b752e85d0f6a227c0a16f6fbe107c2a2d39","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tmas","email":"info@tmas.me"},"dist":{"shasum":"5baf2b752e85d0f6a227c0a16f6fbe107c2a2d39","tarball":"https://registry.npmjs.org/moment-round/-/moment-round-1.0.1.tgz","integrity":"sha512-UXGqmPCOM1pCtD3RXTAgQkmTYLELDYw/u/hJerNssB4H2lqJvMT9ov1D//NXzsGkCZcUHnAEMzRCOtb67sU5PA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID8tqr3fhWKKOnSVGU8O2O9khFK/0ic85IdNNx3qTSZkAiEApzXw0E2QDBDdz12zVE9fLBxanNuGLUQKTPNpsByNKR4="}]},"maintainers":[{"name":"tmas","email":"info@tmas.me"}]}},"readme":"# moment-round\n\nThis is a plugin for [moment.js][moment] and will round date/time to a given interval.\n\n## Examples\n\n``` javascript\nvar m = new moment(); // 2015-06-18 15:30:19\nmoment.round(5, 'seconds'); // 2015-06-18 15:30:20\nmoment.ceil(3, 'minutes'); // 2015-06-18 15:33:00\nmoment.floor(16, 'hours'); // 2015-06-18 00:00:00\nmoment.ceil(21, 'hours'); // 2015-06-18 21:00:00\nmoment.ceil(20, 'hours'); // 2015-06-19 00:00:00\n```\n\nPossible values to round to are `hours`, `minutes`, `seconds`\n\n## Installation\n\n### Browser\n\n``` html\n<script src=\"moment.js\"></script>\n<script src=\"moment-round.js\"></script>\n```\n\n### Node /NPM\n\n``` sh\nnpm install moment-round --save-dev\n```\n\nAnd then `require` it:\n\n``` javascript\nvar moment = require('moment');\nrequire('moment-round');\n```\n\n### Bower\n\n``` sh\nbower install moment-round\n```\n\n## Running tests\n```\ngulp test\n```\n\n## License\n\nmoment-round is [LICENSED][license].\n\n[license]: https://creativecommons.org/licenses/by-sa/3.0/us/\n[moment]: http://momentjs.com/\n","maintainers":[{"name":"tmas","email":"info@tmas.me"}],"time":{"modified":"2022-06-20T05:12:07.854Z","created":"2015-07-11T19:51:03.947Z","1.0.0":"2015-07-11T19:51:03.947Z","1.0.1":"2015-07-11T19:53:10.674Z"},"homepage":"https://github.com/WebDevTmas/moment-round","keywords":["moment","moment.js","date","round"],"repository":{"type":"git","url":"git+https://git@github.com/WenDevTmas/moment-round.git"},"author":{"name":"Thomas Vanderhaeghen","email":"info@tmas.me","url":"http://www.tmas.me"},"bugs":{"url":"https://github.com/WebDevTmas/moment-round/issues"},"license":"CC-BY-SA-3.0","readmeFilename":"README.md","users":{"akinhwan":true}}