{"_id":"round","_rev":"8-f22ca23d5072239a90d8a88e8f8c3555","name":"round","description":"Round numbers to the nearest increment with an optional direction","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"round","version":"1.0.0","description":"Round numbers to the nearest increment with an optional direction","main":"./src/index.js","scripts":{"test":"istanbul cover _mocha -- ./test"},"repository":{"type":"git","url":"https://github.com/bendrucker/round.js.git"},"keywords":["numbers","round","increment"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me/"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/round.js/issues"},"homepage":"https://github.com/bendrucker/round.js","devDependencies":{"chai":"~1.9.2","istanbul":"~0.3.2","mocha":"~2.0.1"},"dependencies":{"defaults":"~1.0.0"},"gitHead":"ed480dbe412f08701a3628961ade649016b4ee5c","_id":"round@1.0.0","_shasum":"857f8850f7f830f9db0a7cd4a7068533ca392ac3","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"dist":{"shasum":"857f8850f7f830f9db0a7cd4a7068533ca392ac3","tarball":"https://registry.npmjs.org/round/-/round-1.0.0.tgz","integrity":"sha512-i03iTi85LHvZcnJ/CdLcE30ZU79UJvzkORFtFZRTrMbr/5GQHS7W9o4ty5ilieLfAJ5mPnH0hy2puSMIUUqSTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAXD/a8A0S50TBEA0m/pXDLYPnQLihOqJmSEItJ2TflnAiBMzFlkzhNcQxCHZDF1Ib4Wwl+eFPGNvG/SXWmwMD7Nng=="}]}},"1.0.1":{"name":"round","version":"1.0.1","description":"Round numbers to the nearest increment with an optional direction","main":"./src/index.js","scripts":{"test":"istanbul cover _mocha -- ./test"},"repository":{"type":"git","url":"https://github.com/bendrucker/round.js.git"},"keywords":["numbers","round","increment"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me/"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/round.js/issues"},"homepage":"https://github.com/bendrucker/round.js","devDependencies":{"chai":"~1.9.2","istanbul":"~0.3.2","mocha":"~2.0.1"},"gitHead":"edc8733200610d01b8e3e03b9491ba70ed14daec","_id":"round@1.0.1","_shasum":"c9f02028079c938da27c5ead6977369a1a56d366","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"dist":{"shasum":"c9f02028079c938da27c5ead6977369a1a56d366","tarball":"https://registry.npmjs.org/round/-/round-1.0.1.tgz","integrity":"sha512-39srLYuwzdjh809HsBGpbS3OVkgiRJ7coN21u4mT42FIDJbeTyoM6fEBEJyb7GYMo4qeNyJJozdG24JyjFdeXg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpBqxudR/o+X/kRoK6KgckjTYTEKuV6BNs7Bmc15BTHgIgLyCnxOsW7/3744TZtH306+JW4SbMKb0aXPIU0WZdVmU="}]}},"2.0.0":{"name":"round","version":"2.0.0","description":"Round numbers to the nearest increment with an optional direction","main":"index.js","scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/bendrucker/round.js.git"},"keywords":["numbers","round","increment"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me/"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/round.js/issues"},"homepage":"https://github.com/bendrucker/round.js","devDependencies":{"standard":"~4.0.1","tape":"~4.0.0"},"dependencies":{"ap":"~0.2.0"},"files":["index.js","readme.md"],"gitHead":"6d080b2588e345e2205d692eed2f2eb9464b0399","_id":"round@2.0.0","_shasum":"9a4712fc3051ab3ef3b6c2aceb80202bcba414e3","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"9a4712fc3051ab3ef3b6c2aceb80202bcba414e3","tarball":"https://registry.npmjs.org/round/-/round-2.0.0.tgz","integrity":"sha512-9hbA0aY3QM9D1VY9PfVvXuyCqc8N1j510bkyQgg82eWgCo1b0E0N0i3FUEa8yF22dIDpFA2Me21VzJxJnLa+tQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHBT2EwTv5+23hYk+84MoNcYHh5tz7wFlkeGk6pAWfr3AiEAuLmes5Jc+ykcPchKoXvQl4hCQjbyDa7DaTBmrXYHmxA="}]},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}]},"2.0.1":{"name":"round","version":"2.0.1","description":"Round numbers to the nearest increment with an optional direction","main":"index.js","scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/bendrucker/round.js.git"},"keywords":["numbers","round","increment"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me/"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/round.js/issues"},"homepage":"https://github.com/bendrucker/round.js","devDependencies":{"standard":"~4.0.1","tape":"~4.0.0"},"dependencies":{"precision":"~1.0.0","round-precision":"~1.0.0"},"files":["index.js","readme.md"],"gitHead":"6ba701fba6cc055dd80ce4f748057926899e85d4","_id":"round@2.0.1","_shasum":"ec1bbb87cb1cab9ff2c81b7c43c84a5d1ed97e65","_from":".","_npmVersion":"2.13.5","_nodeVersion":"2.3.3","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"ec1bbb87cb1cab9ff2c81b7c43c84a5d1ed97e65","tarball":"https://registry.npmjs.org/round/-/round-2.0.1.tgz","integrity":"sha512-wzT6PF3wNEd2PCLTBQxteheeSwViBrD89E1XZjl4sj505C4LwTpqOQSNXLEROHDQw35NoylYbMxoUhgf2hb4qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICP3w1IlBgTbUDmI8iKlL+hKr3l3PYFPbEzjY15abnUxAiBasktPdb7nt4G9cSvo2Hh/2if7OToqLyOJZL283wV2dg=="}]},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}]}},"readme":"round.js [![Build Status](https://travis-ci.org/bendrucker/round.js.svg?branch=master)](https://travis-ci.org/bendrucker/round.js)\n========\n\n> Round numbers to the nearest multiple with an optional direction.\n\n## Installing\n\n```js\n$ npm install --save round\n```\n\n## API\n\n#### `round(value, [multiple], [direction])` -> `number`\n\n##### value\n\n*Required*  \nType: `number`\n\nThe value to round.\n\n##### multiple\n\nType: `number`  \nDefault: `1`\n\nThe multiple to round to.\n\n##### direction\n\nType: `string`  \nValues: `up` / `down`\n\nIf no direction is supplied, the number will be rounded to the nearest direction, defaulting to up if the value is equidistant from the rounded values.\n\n#### `round.down(value, multiple)` -> `number`\n\nConvenience method for rounding down.\n\n#### `round.up(value, multiple)` -> `number`\n\nConvenience method for rounding up.\n","maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"time":{"modified":"2022-06-26T14:15:29.782Z","created":"2014-11-09T23:16:27.879Z","1.0.0":"2014-11-09T23:16:27.879Z","1.0.1":"2014-11-10T20:04:47.398Z","2.0.0":"2015-06-09T03:50:16.035Z","2.0.1":"2015-08-17T16:20:54.493Z"},"homepage":"https://github.com/bendrucker/round.js","keywords":["numbers","round","increment"],"repository":{"type":"git","url":"git+https://github.com/bendrucker/round.js.git"},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me/"},"bugs":{"url":"https://github.com/bendrucker/round.js/issues"},"license":"MIT","readmeFilename":"README.md"}