{"name":"stats-js","version":"1.0.0-alpha1","description":"JavaScript Performance Monitor","main":"build/stats.min.js","directories":{"example":"examples"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/Kevnz/stats.js.git"},"keywords":["stats","webgl"],"author":{"name":"Kevin Isom","email":"kevin.isom@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/Kevnz/stats.js/issues"},"homepage":"https://github.com/Kevnz/stats.js","_id":"stats-js@1.0.0-alpha1","_shasum":"44ae82e6421123bab99750d95c3f5526b8f257db","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"kev_nz","email":"kevin.isom@gmail.com"},"maintainers":[{"name":"kev_nz","email":"kevin.isom@gmail.com"}],"dist":{"shasum":"44ae82e6421123bab99750d95c3f5526b8f257db","tarball":"http://registry-npm.ywwl.com/stats-js/download/stats-js-1.0.0-alpha1.tgz","integrity":"sha512-BKrDAFE/YuRRWNrKBL6rRykJWx0LBxZJeJCcKeidpGlfqmTYhMEi/YfLZ8GoA5/KVWaIgPZnoApPli1LX0QQ8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGFp4iR7GCwOz60HQ5vMhJfsvM2kv7k+pt2+wxQG0fqiAiEAlHxhTb5nbQRUm93nYIR+zO2HdYter83D3HhJstACxCs="}],"size":4978446,"noattachment":false,"key":"/stats-js/-/stats-js-1.0.0-alpha1.tgz"},"readme":"stats.js\n========\n\n#### JavaScript Performance Monitor ####\n\nThis class provides a simple info box that will help you monitor your code performance.\n\n* **FPS** Frames rendered in the last second. The higher the number the better.\n* **MS** Milliseconds needed to render a frame. The lower the number the better.\n* **MB** MBytes of allocated memory. (Run Chrome with `--enable-precise-memory-info`)\n* **CUSTOM** User-defined panel support.\n\n\n### Screenshots ###\n\n![fps.png](https://raw.githubusercontent.com/Kevnz/stats.js/master/files/fps.png)\n![ms.png](https://raw.githubusercontent.com/Kevnz/stats.js/master/files/ms.png)\n![mb.png](https://raw.githubusercontent.com/Kevnz/stats.js/master/files/mb.png)\n![custom.png](https://raw.githubusercontent.com/Kevnz/stats.js/master/files/custom.png)\n\n\n### Usage ###\n\n```javascript\nvar stats = new Stats();\nstats.showPanel( 1 ); // 0: fps, 1: ms, 2: mb, 3+: custom\ndocument.body.appendChild( stats.dom );\n\nfunction animate() {\n\n\tstats.begin();\n\n\t// monitored code goes here\n\n\tstats.end();\n\n\trequestAnimationFrame( animate );\n\n}\n\nrequestAnimationFrame( animate );\n```\n\n\n### Bookmarklet ###\n\nYou can add this code to any page using the following bookmarklet:\n\n```javascript\njavascript:(function(){var script=document.createElement('script');script.onload=function(){var stats=new Stats();document.body.appendChild(stats.dom);requestAnimationFrame(function loop(){stats.update();requestAnimationFrame(loop)});};script.src='//cdn.jsdelivr.net/gh/Kevnz/stats.js/build/stats.min.js';document.head.appendChild(script);})()\n```\n","publish_time":1412382448713,"_cnpm_publish_time":1412382448713,"dist-tags":{"latest":"1.0.1"}}