{"_id":"speedometer","_rev":"141955","name":"speedometer","description":"simple speed measurement in javascript","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"mafintosh","email":""}],"time":{"modified":"2021-06-03T11:27:32.000Z","created":"2013-03-20T19:16:27.510Z","1.1.0":"2018-06-18T10:15:13.535Z","1.0.0":"2015-10-16T11:50:15.376Z","0.1.4":"2014-12-24T09:52:07.307Z","0.1.3":"2014-06-30T19:35:40.910Z","0.1.2":"2013-07-20T19:06:03.883Z","0.1.1":"2013-04-16T21:26:04.045Z","0.1.0":"2013-03-20T19:16:27.510Z"},"users":{"pedromsilva":true,"wayn":true,"chamerling":true,"wenbing":true,"ahme-t":true,"heartnett":true},"author":{"name":"Mathias Buus Madsen","email":"mathiasbuus@gmail.com"},"repository":{"type":"git","url":"git://github.com/mafintosh/speedometer.git"},"versions":{"1.1.0":{"name":"speedometer","version":"1.1.0","repository":{"type":"git","url":"git://github.com/mafintosh/speedometer.git"},"description":"simple speed measurement in javascript","license":"MIT","keywords":["speed","bytes","per","second","transfer"],"author":{"name":"Mathias Buus Madsen","email":"mathiasbuus@gmail.com"},"gitHead":"a7b53aca2cf17c1bfd4daeadcba99881fb5dc09e","bugs":{"url":"https://github.com/mafintosh/speedometer/issues"},"homepage":"https://github.com/mafintosh/speedometer#readme","_id":"speedometer@1.1.0","_npmVersion":"6.1.0","_nodeVersion":"10.3.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"a30b13abda45687a1a76977012c060f2ac8a7934","size":1730,"noattachment":false,"key":"/speedometer/-/speedometer-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/speedometer/download/speedometer-1.1.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/speedometer_1.1.0_1529316913474_0.6136916881815482"},"_hasShrinkwrap":false,"publish_time":1529316913535,"_cnpm_publish_time":1529316913535},"1.0.0":{"name":"speedometer","version":"1.0.0","repository":{"type":"git","url":"git://github.com/mafintosh/speedometer"},"description":"simple speed measurement in javascript","license":"MIT","keywords":["speed","bytes","per","second","transfer"],"author":{"name":"Mathias Buus Madsen","email":"mathiasbuus@gmail.com"},"gitHead":"5e92f4d27a0fa7af5de71fcf2b5bff73e2e4c862","bugs":{"url":"https://github.com/mafintosh/speedometer/issues"},"homepage":"https://github.com/mafintosh/speedometer","_id":"speedometer@1.0.0","scripts":{},"_shasum":"cd671cb06752c22bca3370e2f334440be4fc62e2","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"cd671cb06752c22bca3370e2f334440be4fc62e2","size":1745,"noattachment":false,"key":"/speedometer/-/speedometer-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/speedometer/download/speedometer-1.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1444996215376,"_cnpm_publish_time":1444996215376,"_hasShrinkwrap":false},"0.1.4":{"name":"speedometer","version":"0.1.4","repository":{"type":"git","url":"git://github.com/mafintosh/speedometer"},"description":"simple speed measurement in javascript","keywords":["speed","bytes","per","second","transfer"],"author":{"name":"Mathias Buus Madsen","email":"mathiasbuus@gmail.com"},"gitHead":"0771a135bad8a8a7d31770ff2e7a29000e2ce5a1","bugs":{"url":"https://github.com/mafintosh/speedometer/issues"},"homepage":"https://github.com/mafintosh/speedometer","_id":"speedometer@0.1.4","scripts":{},"_shasum":"9876dbd2a169d3115402d48e6ea6329c8816a50d","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":""}],"dist":{"shasum":"9876dbd2a169d3115402d48e6ea6329c8816a50d","size":1737,"noattachment":false,"key":"/speedometer/-/speedometer-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/speedometer/download/speedometer-0.1.4.tgz"},"directories":{},"publish_time":1419414727307,"_cnpm_publish_time":1419414727307,"_hasShrinkwrap":false},"0.1.3":{"name":"speedometer","version":"0.1.3","repository":{"type":"git","url":"git://github.com/mafintosh/speedometer"},"description":"simple speed measurement in javascript","keywords":["speed","bytes","per","second","transfer"],"author":{"name":"Mathias Buus Madsen","email":"mathiasbuus@gmail.com"},"bugs":{"url":"https://github.com/mafintosh/speedometer/issues"},"homepage":"https://github.com/mafintosh/speedometer","_id":"speedometer@0.1.3","_shasum":"90a4540e5efe50811b43f6308235c23555262047","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":""}],"dist":{"shasum":"90a4540e5efe50811b43f6308235c23555262047","size":1755,"noattachment":false,"key":"/speedometer/-/speedometer-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/speedometer/download/speedometer-0.1.3.tgz"},"directories":{},"publish_time":1404156940910,"_cnpm_publish_time":1404156940910,"_hasShrinkwrap":false},"0.1.2":{"name":"speedometer","version":"0.1.2","repository":{"type":"git","url":"git://github.com/mafintosh/speedometer"},"description":"simple speed measurement in javascript","keywords":["speed","bytes","per","second","transfer"],"author":{"name":"Mathias Buus Madsen","email":"mathiasbuus@gmail.com"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/mafintosh/speedometer/issues"},"_id":"speedometer@0.1.2","dist":{"shasum":"1c1a93e7846de8b5d3c9447b1976aa0a5462ff48","size":1198,"noattachment":false,"key":"/speedometer/-/speedometer-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/speedometer/download/speedometer-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1374347163883,"_cnpm_publish_time":1374347163883,"_hasShrinkwrap":false},"0.1.1":{"name":"speedometer","version":"0.1.1","repository":{"type":"git","url":"git://github.com/mafintosh/speedometer"},"description":"simple speed measurement in javascript","keywords":["speed","bytes","per","second","transfer"],"author":{"name":"Mathias Buus Madsen","email":"mathiasbuus@gmail.com"},"readmeFilename":"README.md","_id":"speedometer@0.1.1","dist":{"shasum":"e5343ecb825182a5ddb211b2527b911e3b963122","size":909,"noattachment":false,"key":"/speedometer/-/speedometer-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/speedometer/download/speedometer-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1366147564045,"_cnpm_publish_time":1366147564045,"_hasShrinkwrap":false},"0.1.0":{"name":"speedometer","version":"0.1.0","repository":{"type":"git","url":"git://github.com/mafintosh/speedometer"},"description":"simple speed measurement in javascript","keywords":["speed","bytes","per","second","transfer"],"author":{"name":"Mathias Buus Madsen","email":"mathiasbuus@gmail.com"},"readmeFilename":"README.md","_id":"speedometer@0.1.0","dist":{"shasum":"13661635cbeec7a7164b096b8910629506feb6ef","size":913,"noattachment":false,"key":"/speedometer/-/speedometer-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/speedometer/download/speedometer-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"publish_time":1363806987510,"_cnpm_publish_time":1363806987510,"_hasShrinkwrap":false}},"readme":"# speedometer\n\nSpeed measurement in Javascript\n\n```\nnpm install speedometer\n```\n\n## Usage\n\n``` js\nvar speedometer = require('speedometer')\nvar fs = require('fs')\n\n// Let's measure how fast we can read from /dev/urandom\nvar speed = speedometer()\nvar stream = fs.createReadStream('/dev/urandom')\n\nstream.on('data', function(data) {\n  // Simply call speed with the amount of bytes transferred\n  var bytesPerSecond = speed(data.length)\n\n  console.log(bytesPerSecond+' bytes/second')\n})\n```\n\nYou can always get the current speed by calling `speed()`.\n\nPer default `speedometer` uses a 5 second buffer.\nTo change this simply pass another value to the constructor\n\n``` js\nvar speed = speedometer(20) // uses a 20s buffer instead\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/mafintosh/speedometer#readme","bugs":{"url":"https://github.com/mafintosh/speedometer/issues"},"license":"MIT"}