{"_id":"@assembleco/browser-process-hrtime","_rev":"1-4f84f9d9f349a5ec7b16050dd70705e5","name":"@assembleco/browser-process-hrtime","dist-tags":{"latest":"1.0.0-a"},"versions":{"1.0.0-a":{"name":"@assembleco/browser-process-hrtime","version":"1.0.0-a","description":"Shim for process.hrtime in the browser","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/kumavis/browser-process-hrtime.git"},"author":{"name":"kumavis"},"license":"BSD-2-Clause","gitHead":"91fcdbd17aa3b0601e1df01daf8d95994f52ad0c","bugs":{"url":"https://github.com/kumavis/browser-process-hrtime/issues"},"homepage":"https://github.com/kumavis/browser-process-hrtime#readme","_id":"@assembleco/browser-process-hrtime@1.0.0-a","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-vMUW1TTn3hMt808v8Vhca1kmDDKmQz8leM0KMstV7jQtTBteq3KXzkiqZlf0nbX4nRRxupIl1bEoGv1TOoeV+Q==","shasum":"f9795d38f0ec998cc4fde58a7f0818b8ee28420a","tarball":"https://registry.npmjs.org/@assembleco/browser-process-hrtime/-/browser-process-hrtime-1.0.0-a.tgz","fileCount":5,"unpackedSize":3573,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhsS26CRA9TVsSAnZWagAA2AQP/1bK4gk+m2VKF/wE51/y\ndeLoGW7qhDHl7NZMmO078ghPAghBFzlbO3qXet+tRXxH6XrLxa8hxvpm/cLQ\ndlmnG3i+46N+TYRN9zRmiprtgrhTk371xXmA0v163lyLJ0jGP+6OEt/zrh6B\nLJBV8iRZjFKBh5YkmimXdBHWpsZmMnM+2t4ZklvfJ5AUtyK0LjA2PO1/io/z\nXZ11+mlf0OFKKEJM0ic95ZzaN/5hdOKLH8a8ePDf/fyenGjraBtB2+b5ayxu\n0LKMxEoV35yPPNBZFO1x27WWZX5QH1m5P/3GRCR0Kd8p7XhGivWkNcVbWsU+\nE3RmEgsKzrT0QODd2HwL/HNXUuuk/9qGoqv4ez4wsOTSvxHUxxump2DpjmqP\nG12I0nCrPzVIwdLlkZwOskR8BJ/XKZAkfu/JNVYvfPptg+lOkcR+Kmn/BZiD\nFBgnilaupUQDaDYDMFL8F1yJcRIX8ENH5wD4wDs0s5Ldos2FmBm5NxR2emBb\nnkH/j9g6AR6gcVqFgsAJdrkEjReggECk4Lbd0fKtBnt1H95rsDUnw7U9xkyQ\nfPzCocnR7QZy8exDqNJal+gIl4pcHv+J715bsc7HTlFZ2S9PMzFlBh5d5nUj\ndLC0DRg5RdcgQUhL8S8yVDRHT+ucLQz0M/Sa57S50EGlotKZLGphXPfXEWzd\n0vGd\r\n=lZIV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1bTJe6TpqjhI9PvuP97dBr5J1vX8hiyT5G7Tf8g6oOQIhANR+BAyD9Cf36CKih/iMgxArRMSzRbS4wYc5fFM/xLe9"}]},"_npmUser":{"name":"c4lliope","email":"g@assembled.app"},"directories":{},"maintainers":[{"name":"c4lliope","email":"g@assembled.app"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/browser-process-hrtime_1.0.0-a_1639001529954_0.7143704163358588"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-08T22:12:09.902Z","1.0.0-a":"2021-12-08T22:12:10.119Z","modified":"2022-04-04T15:50:50.798Z"},"maintainers":[{"name":"c4lliope","email":"g@assembled.app"}],"description":"Shim for process.hrtime in the browser","homepage":"https://github.com/kumavis/browser-process-hrtime#readme","repository":{"type":"git","url":"git://github.com/kumavis/browser-process-hrtime.git"},"author":{"name":"kumavis"},"bugs":{"url":"https://github.com/kumavis/browser-process-hrtime/issues"},"license":"BSD-2-Clause","readme":"# browser-process-hrtime\n\nBrowser shim for Node.js `process.hrtime()`.\nSee [documentation at nodejs.org](http://nodejs.org/api/process.html#process_process_hrtime)\n\nThis module does not provide the same level of time precision as node.js, but provides a matching API and response format.\n\n### usage\nUse hrtime independent of environment (node or browser).\nIt will use `process.hrtime` first and fallback if not present.\n```js\nconst hrtime = require('browser-process-hrtime')\nconst start = hrtime()\n// ...\nconst delta = hrtime(start)\n```\n\n### monkey-patching\nYou can monkey-patch `process.hrtime` for your dependency graph like this:\n```js\nprocess.hrtime = require('browser-process-hrtime')\nconst coolTool = require('module-that-uses-hrtime-somewhere-in-its-depths')\n```\n\n### note\nThis was originally pull-requested against [node-process](https://github.com/defunctzombie/node-process),\nbut they are trying to stay lean.\n","readmeFilename":"README.md"}