{"name":"neo-timer","version":"0.1.0","description":"neo-timer --","main":"index.js","license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/suguru03/neo-timer.git"},"gitHead":"dd8326257ecf53d96206a2a8a0408d83e70351db","bugs":{"url":"https://github.com/suguru03/neo-timer/issues"},"homepage":"https://github.com/suguru03/neo-timer#readme","_id":"neo-timer@0.1.0","scripts":{},"_shasum":"ff97ae7d5d0f06bfd0651f2dd645003d84b53f6d","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.2.0","_npmUser":{"name":"suguru03","email":"suguru.motegi@gmail.com"},"dist":{"shasum":"ff97ae7d5d0f06bfd0651f2dd645003d84b53f6d","tarball":"http://registry-npm.ywwl.com/neo-timer/download/neo-timer-0.1.0.tgz","integrity":"sha512-xWcJmIs+CFkOWNcsqND8qWFMcfs2spKWsczq3lK16Xp5+SSkxI3xvBWGfXt8vEdoJ8sI4ucDO68654SQlaV29A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMdM2xuK++0BbhKFJmL6IT2bAfAt20NU1+22L5mceRmQIhAOxtcDWlhP3K4svy35KTX90MTIju1jBpWlVmBM+kulqc"}],"size":3401,"noattachment":false,"key":"/neo-timer/-/neo-timer-0.1.0.tgz"},"maintainers":[{"name":"suguru03","email":"suguru.motegi@gmail.com"}],"directories":{},"readme":"neo-timer\n--\n\nneo-timer can be used as a timer or stopwatch.\n\nThe timer is selected automatically by your environment.\n\n## functions\n\n### init\n\n### start\n\n### diff\n\n### lap\n\n### result\n\n\n## example\n\n```js\n\n'use strict';\n\nvar Timer = require('../');\nvar timer = new Timer({\n  MAX_LAP_LENGTH: 100\n});\n\nvar count = 0;\nvar times = 100;\n\ntimer.init().start();\n\nvar iter = function() {\n  setTimeout(function() {\n    clearTimeout(iter);\n    timer.lap();\n    if (count === times) {\n      console.log(timer.result());\n    } else {\n      iter();\n    }\n  }, Math.random() * 10 * ++count);\n};\n\niter();\n\n```\n\n![graph](https://cloud.githubusercontent.com/assets/8013633/9806130/b987462c-587b-11e5-8d7e-c5ed9a9a564a.png)\n","publish_time":1442377729612,"_cnpm_publish_time":1442377729612,"dist-tags":{"latest":"0.2.0"}}