{"_id":"node-eta","_rev":"141772","name":"node-eta","description":"Estimated time to arrival","dist-tags":{"latest":"0.9.0"},"maintainers":[{"name":"titarenko","email":"constantin.titarenko@gmail.com"}],"time":{"modified":"2021-06-03T11:27:25.000Z","created":"2014-06-26T11:53:37.878Z","0.9.0":"2015-11-27T18:06:53.319Z","0.1.1":"2014-06-26T12:04:50.750Z","0.1.0":"2014-06-26T11:53:37.878Z"},"users":{},"author":{"name":"Constantin Titarenko"},"repository":{"type":"git","url":"git://github.com/titarenko/eta.git"},"versions":{"0.9.0":{"name":"node-eta","version":"0.9.0","description":"Estimated time to arrival","main":"index.js","repository":{"type":"git","url":"git://github.com/titarenko/eta.git"},"keywords":["eta","estimated time to arrival","estimated","time","arrival"],"author":{"name":"Constantin Titarenko"},"license":"MIT","bugs":{"url":"https://github.com/titarenko/eta/issues"},"homepage":"https://github.com/titarenko/eta","gitHead":"bc173bcd0cdbab43bd3998133dfd4eda3d4de040","_id":"node-eta@0.9.0","scripts":{},"_shasum":"9fb0b099bcd2a021940e603c64254dc003d9a7a8","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"titarenko","email":"constantin.titarenko@gmail.com"},"dist":{"shasum":"9fb0b099bcd2a021940e603c64254dc003d9a7a8","size":2081,"noattachment":false,"key":"/node-eta/-/node-eta-0.9.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-eta/download/node-eta-0.9.0.tgz"},"maintainers":[{"name":"titarenko","email":"constantin.titarenko@gmail.com"}],"directories":{},"publish_time":1448647613319,"_cnpm_publish_time":1448647613319,"_hasShrinkwrap":false},"0.1.1":{"name":"node-eta","version":"0.1.1","description":"Estimated time of arrival","main":"index.js","repository":{"type":"git","url":"git://github.com/titarenko/eta.git"},"keywords":["eta","estimated time of arrival","estimated","time","arrival"],"author":{"name":"Constantin Titarenko"},"license":"BSD","bugs":{"url":"https://github.com/titarenko/eta/issues"},"homepage":"https://github.com/titarenko/eta","_id":"node-eta@0.1.1","_shasum":"4066109b39371c761c72b7ebda9a9ea0a5de121f","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"titarenko","email":"constantin.titarenko@gmail.com"},"maintainers":[{"name":"titarenko","email":"constantin.titarenko@gmail.com"}],"dist":{"shasum":"4066109b39371c761c72b7ebda9a9ea0a5de121f","size":1337,"noattachment":false,"key":"/node-eta/-/node-eta-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-eta/download/node-eta-0.1.1.tgz"},"directories":{},"publish_time":1403784290750,"_cnpm_publish_time":1403784290750,"_hasShrinkwrap":false},"0.1.0":{"name":"node-eta","version":"0.1.0","description":"Estimated time of arrival","main":"index.js","repository":{"type":"git","url":"git://github.com/titarenko/eta.git"},"keywords":["eta","estimated time of arrival","estimated","time","arrival"],"author":{"name":"Constantin Titarenko"},"license":"BSD","bugs":{"url":"https://github.com/titarenko/eta/issues"},"homepage":"https://github.com/titarenko/eta","_id":"node-eta@0.1.0","_shasum":"16755997c579fb9ed8f0e05b0f68f875b35ff18c","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"titarenko","email":"constantin.titarenko@gmail.com"},"maintainers":[{"name":"titarenko","email":"constantin.titarenko@gmail.com"}],"dist":{"shasum":"16755997c579fb9ed8f0e05b0f68f875b35ff18c","size":1309,"noattachment":false,"key":"/node-eta/-/node-eta-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-eta/download/node-eta-0.1.0.tgz"},"directories":{},"publish_time":1403783617878,"_cnpm_publish_time":1403783617878,"_hasShrinkwrap":false}},"readme":"# ETA\n\nEstimated time to arrival.\n\n## API\n\n### ctor(count[, autoStartOrOptions])\n\nConstructs ETA object for `count` of iterations. \nOptionally accepts additional parameter specifying whether time measurement should start immediately (autoStart), or, if it is an object, then it will be treated as options.\n\nOptions are:\n\n- autoStart - already described\n- numberFormatter - function, which accepts number and returns string\n\n```js\nvar Eta = require('node-eta');\nvar eta = new Eta(10);\n```\n\n### start()\n\nStarts time measurement.\n\n### iterate([anything1, anything2, ...])\n\nNotifies estimator that one more iteration has finished.\nOptionally supports any number of arguments that will be passed to `util.format` to produce message, associated with last iteration.\n\n### format([anything1, anything2, ...])\n\nPasses arguments to `util.format` and treats its invocation result as layout where following placeholders can participate:\n\n- `{{elapsed}}` - elapsed time in seconds\n- `{{rate}}` - current rate (iterations per second)\n- `{{estimated}}` - estimated time (total) in seconds\n- `{{progress}}` - progress (fraction of 1)\n- `{{eta}}` - estimated time to arrival in seconds\n- `{{etah}}` - formatted (for human-readability) eta\n- `{{last}}` - message from last iteration, if any\n\nReturns layout filled with placeholder values.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/titarenko/eta","bugs":{"url":"https://github.com/titarenko/eta/issues"},"license":"MIT"}