{"_id":"@boofw/raftimer","_rev":"1-6f40e2687dea9473b22eb762ef1be569","name":"@boofw/raftimer","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@boofw/raftimer","version":"1.0.0","description":"setTimeout and setInterval based on requestAnimationFrame api","scripts":{"build":"rollup -c"},"devDependencies":{"@babel/cli":"^7.7.4","@babel/core":"^7.7.4","@babel/preset-env":"^7.7.4","babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015-rollup":"^3.0.0","babel-preset-latest":"^6.24.1","rollup":"^1.27.8","rollup-plugin-babel":"^4.3.3"},"_id":"@boofw/raftimer@1.0.0","gitHead":"a8f31b7c7fdfff7b8d549a3a14ddbc3b245f3580","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-F2XWGXIPNfxHSEs20KfKzfZ5zoYOkXBcpkbnqiDzYd5yr7n2e6QRwtV150jR8J0SbozAlIHykIz7sDITAyUIug==","shasum":"6cffc1571f057aaec240e58799e2b34eb44c2cf3","tarball":"https://registry.npmjs.org/@boofw/raftimer/-/raftimer-1.0.0.tgz","fileCount":7,"unpackedSize":9741,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8LNyk1WSJ+OS1aK6bGxJKoxdKaGKP8uIIKjyLmYvYtAIhAPDxTkBeRQTc8voGQzOYWWccws5W+bWHoVqrw5GLIaGm"}]},"_npmUser":{"name":"boofw","email":"boofw@qq.com"},"directories":{},"maintainers":[{"name":"boofw","email":"boofw@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/raftimer_1.0.0_1691738793732_0.8143249176765675"},"_hasShrinkwrap":false},"1.0.1":{"name":"@boofw/raftimer","version":"1.0.1","description":"setTimeout and setInterval based on requestAnimationFrame api","scripts":{"build":"rollup -c"},"module":"./src/index.js","devDependencies":{"@babel/cli":"^7.7.4","@babel/core":"^7.7.4","@babel/preset-env":"^7.7.4","babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015-rollup":"^3.0.0","babel-preset-latest":"^6.24.1","rollup":"^1.27.8","rollup-plugin-babel":"^4.3.3"},"_id":"@boofw/raftimer@1.0.1","gitHead":"49c2a27ce8f25b366a70f5a8e2d6869260efbacc","_nodeVersion":"16.20.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-q/9KscoFn5rxBHc5LAWJgt9NcAw2t8udFvQ5aoniPe/EF6RYSvu/h7mTo98TnEuq/xpaubHhdDH8v8px7nciIw==","shasum":"a6d6204fa5caebfed128b6b87a9606528437fa56","tarball":"https://registry.npmjs.org/@boofw/raftimer/-/raftimer-1.0.1.tgz","fileCount":7,"unpackedSize":9771,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAkPmmPVRYlbWWH9q+/yM5tNqiMo6Kvz+oaHpsWWdX/gIhAMgLFjnvKp74G4VA9RnWbiIZnD2q6U4QtQ5lfJ0C8nvz"}]},"_npmUser":{"name":"boofw","email":"boofw@qq.com"},"directories":{},"maintainers":[{"name":"boofw","email":"boofw@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/raftimer_1.0.1_1691740142692_0.03494843026497141"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-11T07:26:33.630Z","1.0.0":"2023-08-11T07:26:33.890Z","modified":"2023-08-11T07:49:03.024Z","1.0.1":"2023-08-11T07:49:02.865Z"},"maintainers":[{"name":"boofw","email":"boofw@qq.com"}],"description":"setTimeout and setInterval based on requestAnimationFrame api","readme":"# boofw/raftimer\n\nsetTimeout and setInterval based on requestAnimationFrame api\n\n## Usage\n\n- not ES2015\n\n```\n<script src=\"#path#/dist/raf-timer.iife.js\"></script>\n<script>\nRafTimer.setTimeout(function(t) {\n  console.log('setTimeout', JSON.stringify(t));\n});\nRafTimer.setInterval(function(t) {\n  console.log('setInterval', JSON.stringify(t));\n  if (t.count > 3) t.quit();\n}, 500);\n</script>\n```\n\n- ES2015\n\n```\n<script type=\"module\">\n  import RafTimer from '#path#/src/index.js';\n  RafTimer.setTimeout(function(t) {\n    console.log('setTimeout', JSON.stringify(t));\n  });\n  RafTimer.setInterval(function(t) {\n    console.log('setInterval', JSON.stringify(t));\n    if (t.count > 3) t.quit();\n  }, 500);\n</script>\n```\n","readmeFilename":"README.md"}