{"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","tarball":"http://registry-npm.ywwl.com/node-eta/download/node-eta-0.9.0.tgz","integrity":"sha512-mTCTZk29tmX1OGfVkPt63H3c3VqXrI2Kvua98S7iUIB/Gbp0MNw05YtUomxQIxnnKMyRIIuY9izPcFixzhSBrA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCA0gwfOluh12Q0KFW+1CBj8MLPOKH0yvo/Ht2Fs9Q9QIgc+V5QlwqGS7Do5LIJqq8VHtex+ADJdI990SLb/0cEjw="}],"size":2081,"noattachment":false,"key":"/node-eta/-/node-eta-0.9.0.tgz"},"maintainers":[{"name":"titarenko","email":"constantin.titarenko@gmail.com"}],"directories":{},"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","publish_time":1448647613319,"_cnpm_publish_time":1448647613319,"dist-tags":{"latest":"0.9.0"}}