{"_id":"@daniloisr/miniprofiler","_rev":"4-3d81c36476f13d0ce6d21e720ce8af5b","name":"@daniloisr/miniprofiler","dist-tags":{"latest":"3.0.1"},"versions":{"1.2.4":{"name":"@daniloisr/miniprofiler","version":"1.2.4","description":"A simple but effective mini-profiler.","main":"lib/miniprofiler.js","scripts":{"start-services":"docker run -d -p 6060:6379 redis","lint":"eslint .","test":"mocha tests/ -c","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- tests/ -R spec","check-coverage":"istanbul check-coverage --statements 95 --branches 95 --functions 95 --lines 95","update-coveralls":"cat coverage/lcov.info | node ./node_modules/coveralls/bin/coveralls.js"},"repository":{"type":"git","url":"git+https://github.com/MiniProfiler/node.git"},"bugs":{"url":"http://github.com/MiniProfiler/node/issues"},"author":{"name":"Guilherme Oenning","email":"oenning.ti@gmail.com","url":"http://goenning.net/"},"contributors":[{"name":"Matt Jibson","email":"matt.jibson@gmail.com","url":"https://mattjibson.com/"},{"name":"Kevin Montrose"}],"license":"Apache-2.0","dependencies":{"asyncctx":"^1.1.0","lru-cache":"^4.0.1"},"tags":["profiler","performance","profiling","timing","web profiling"],"devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.11","docker-ip":"^2.0.1","eslint":"^3.1.1","express":"^4.13.4","hapi":"^13.5.0","istanbul":"^0.4.3","koa":"^1.2.1","koa-route":"^2.4.2","koa-views":"^4.1.0","debug":"^2.6.1","mocha":"^2.5.3","pug":"^2.0.0-beta2","redis":"^2.6.1","request":"^2.73.0","vision":"^4.1.0"},"gitHead":"44e8197496c437adaa0fcf5576b1ad2f82076c3a","homepage":"https://github.com/MiniProfiler/node#readme","_id":"@daniloisr/miniprofiler@1.2.4","_shasum":"c0202212bcb850954daeba2a436d762b1290ea1a","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.9.1","_npmUser":{"name":"daniloisr","email":"danilo.isr@gmail.com"},"dist":{"shasum":"c0202212bcb850954daeba2a436d762b1290ea1a","tarball":"https://registry.npmjs.org/@daniloisr/miniprofiler/-/miniprofiler-1.2.4.tgz","integrity":"sha512-5151OpzJXjjm8QgfuygdTzEdSx/MznOjMgIM0W+trTnoqGpq+YCA7TbrW71ykYRcV3vvYDbKG+jmPqt7xv07MQ==","fileCount":25,"unpackedSize":447169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb+GtcCRA9TVsSAnZWagAAQQAQAIFbduQaVRiPW+Odu79l\nhD5oc9+iOGLfHQUa5Xtvveo20CGZlx85BCpcjvaxdPw2GQk+BrAvaC0OTaks\nRkVihYtZfTcjKc79hztLUoByFveHryLNUxe/aYWruJ20Q8x5++ASdCKAeeSq\nCikZ3DX+rVSSZyQ9toU2LvjcSuWkg3lPH9MdEs9wgm8m2jKwwQrhHveC906v\ntGDQWxtHjd9iZ9zh78VeSJzZFOCajUjQMxLqyVxwWG3YY9y5/XfI9JW+Mt6V\nDoLXVJXDuQEL6BrnWDNK2QPhgxuVjKsnfVyaPwClY137a483EvQVtjoVfU4U\nMQ4tPr7ZSLYScfirVcgHb7+znqsZV0S53tmXEkIQzs9+nCdnDFSxCXR7dR4Y\nGVgOfrWqYobj1s1UWz0uO+BuTlepRB5LTxs3l4Q8ZmsCmaPy7UvQwsRuFnOL\nZeWrV4CQswUuwhA0ykk/iqVqjsUrJVv8MK1jt56A/29yZYF8c4uNpQQIy08/\nYlsXJP6R+iELO2AJ1bq+OYLL8OZuvzv7pYih/sRNfDeTHS48wFrWt5Wa3ukC\nQfyxIU+yr+2FKyd1vl6aSup+O3t8RIq1xENQ4A7+0KTK7KuG+K5+wdhkLccJ\nwpkMtS81gFov6NDVh3iAER+Z/V9lSd3s0mry9U/wqbEFhAoFjwRF4gmta93d\nzsMa\r\n=vJgw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvbvxe3JGka/qogXF9mot6aVm69XtWhJRh5pNeIFjhNQIgPe5xSbJqbNFGcOCB8UbZ6HMn5w1resFZDoAcAYVL7t8="}]},"maintainers":[{"name":"daniloisr","email":"danilo.isr@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/miniprofiler_1.2.4_1543007068278_0.07187515427493141"},"_hasShrinkwrap":false},"2.0.0":{"name":"@daniloisr/miniprofiler","version":"2.0.0","description":"A simple but effective mini-profiler.","main":"lib/miniprofiler.js","scripts":{"start-services":"docker run -d -p 6060:6379 redis","lint":"eslint .","test":"mocha tests/ -c","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- tests/ -R spec","check-coverage":"istanbul check-coverage --statements 95 --branches 95 --functions 95 --lines 95","update-coveralls":"cat coverage/lcov.info | node ./node_modules/coveralls/bin/coveralls.js"},"repository":{"type":"git","url":"git+https://github.com/MiniProfiler/node.git"},"bugs":{"url":"http://github.com/MiniProfiler/node/issues"},"author":{"name":"Guilherme Oenning","email":"oenning.ti@gmail.com","url":"http://goenning.net/"},"contributors":[{"name":"Matt Jibson","email":"matt.jibson@gmail.com","url":"https://mattjibson.com/"},{"name":"Kevin Montrose"}],"license":"Apache-2.0","dependencies":{"lru-cache":"^4.0.1"},"tags":["profiler","performance","profiling","timing","web profiling"],"devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.11","docker-ip":"^2.0.1","eslint":"^3.1.1","express":"^4.13.4","hapi":"^13.5.0","istanbul":"^0.4.3","koa":"^1.2.1","koa-route":"^2.4.2","koa-views":"^4.1.0","debug":"^2.6.1","mocha":"^2.5.3","pug":"^2.0.0-beta2","redis":"^2.6.1","request":"^2.73.0","vision":"^4.1.0"},"gitHead":"7f9fa5efe5688e3c546f847740cf8665ca173a05","homepage":"https://github.com/MiniProfiler/node#readme","_id":"@daniloisr/miniprofiler@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"daniloisr","email":"danilo.isr@gmail.com"},"dist":{"integrity":"sha512-3GYSLe0qiT7wFMrC9KjjZgY1I4aA4AwR+0ybllNIdHVZgvo/SaEQ6GAxT1cPzUv3gaoJq09QCnyBhVWDr5nMSQ==","shasum":"343ffb8113fb9aad910df05cd8481be7d32a2186","tarball":"https://registry.npmjs.org/@daniloisr/miniprofiler/-/miniprofiler-2.0.0.tgz","fileCount":25,"unpackedSize":241973,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb+1XMCRA9TVsSAnZWagAAWCAQAKDYv7PEqW/tD32ihHOL\ncWHP3YKjk+uJx7vavmKxmuMBCL3N9h54kSiUO+A4LETJI4n80LhDHhhQp4/B\nPaRtzmmCIG0D97BZWQgunh9DOU5C4KqGfCnLkPkiBHYH3+pZU3crro32BmRb\ndEATjXxZNYIuxlSa+3rJPxskLkIAGCWZ3mBraUnOYlZ0EaGUuEMwBc/RCpid\njfMy6lqD17grC5OBcYZFfnXd5xzq/6DSke4KmazqIjiGveURxNnb6jTHqICE\nmjIa+WLLqiBF/nJBusakEO96CPSKHxPPtMb2sLenb9aBDxhOALCdp4Tz3hA2\nB4EZRMwUz+jFgkOcK18Sazj9PYIArSHeo5dEUJO+dbziTiqui6KjKv4MFpFx\n5GkwLq0sm9bCc6S2RttSHW4TWI2PATp56E5ZsKi8E5Sm+9E5gJ5vWXyBSdTM\nDQDhnXoygV5zUJ3iq2l3HUO2Gvbna1rMEAuRQB4xfJVqp3KYBriylJ/P4ZeS\nePfVBlCPWbSmfU7XI4Dcay8I9WvYnxhvvdWLA/rqPCgzMDhcuN44QP7WQf8O\nqiuufV5NFaVE2rEwu1LQxK8uf6XhQUz8cVphQ54w75v617xqItcGMdcbU3WH\nvTdd/50eik1qRoINt/j9+HpVxeZqlWYoNe05scz4m9/nnQ8tVy5xulDnpdkx\nNxe9\r\n=OQRp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICfARVM1dhiu8Y3hvZ0ruvKzheS3gR8Xfo7M8PyCnJOvAiEAtWi6WQWsf7Zg8OeYanNctIt871G1Ulmk1PXgjg47+LM="}]},"maintainers":[{"name":"daniloisr","email":"danilo.isr@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/miniprofiler_2.0.0_1543198155576_0.6152878879240171"},"_hasShrinkwrap":false},"3.0.0":{"name":"@daniloisr/miniprofiler","version":"3.0.0","description":"A simple but effective mini-profiler.","main":"lib/miniprofiler.js","scripts":{"start-services":"docker run -d -p 6060:6379 redis","lint":"eslint .","test":"mocha tests/ -c","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- tests/ -R spec","check-coverage":"istanbul check-coverage --statements 95 --branches 95 --functions 95 --lines 95","update-coveralls":"cat coverage/lcov.info | node ./node_modules/coveralls/bin/coveralls.js"},"repository":{"type":"git","url":"git+https://github.com/MiniProfiler/node.git"},"bugs":{"url":"http://github.com/MiniProfiler/node/issues"},"author":{"name":"Guilherme Oenning","email":"oenning.ti@gmail.com","url":"http://goenning.net/"},"contributors":[{"name":"Matt Jibson","email":"matt.jibson@gmail.com","url":"https://mattjibson.com/"},{"name":"Kevin Montrose"}],"license":"Apache-2.0","dependencies":{"lru-cache":"^4.0.1"},"tags":["profiler","performance","profiling","timing","web profiling"],"devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.11","docker-ip":"^2.0.1","eslint":"^3.1.1","express":"^4.13.4","hapi":"^13.5.0","istanbul":"^0.4.3","koa":"^1.2.1","koa-route":"^2.4.2","koa-views":"^4.1.0","debug":"^2.6.1","mocha":"^2.5.3","pug":"^2.0.0-beta2","redis":"^2.6.1","request":"^2.73.0","vision":"^4.1.0"},"gitHead":"d23580eda1e31097477f89608310653c5d31fb7d","homepage":"https://github.com/MiniProfiler/node#readme","_id":"@daniloisr/miniprofiler@3.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"daniloisr","email":"danilo.isr@gmail.com"},"dist":{"integrity":"sha512-4HPzCLh9StrdO7BcW1jbyLKjcjDw33gPv41Q7YjxxBECNddymS8uZMr/JzyCpkbxgCnUc+aW7OAF/LA0uL+efA==","shasum":"9f4795a5e236ca44b0b61270d638f37d9e36f899","tarball":"https://registry.npmjs.org/@daniloisr/miniprofiler/-/miniprofiler-3.0.0.tgz","fileCount":25,"unpackedSize":241499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcGUk9CRA9TVsSAnZWagAAnusP/R8o/KSAcoFx1PfPN+6x\nqxt2w32/KL8v/Y8zrWjGsNFKp/DygEVQ8h4IEsKOy+ePcX5JeQ1CPdDQL8zC\nmdYpESLrpg61ZmtjcCfzTLI1dgyInkp7efogydwDVfXOCJ5drMoWCYLj1o9J\nRSw3gsViYEkkU37lbTArw/amEoVimMYwtBZaAHKM8J9E3HeNJ/Kuz+oG/uYS\nw9s8PzJP+AHw6LQrDMI7eon57P0pGvfUt2MEikLYdMJ4U8SNm9GS3iRugToD\nYoK+5m4RPNvDePyHvOuvx+ACr09f9ROLPQV2PveN0GLBSEkW7kGMhYeFjPJc\nlh2qccILGavqCSr6nRT936mm9hTfta7GorYKg4AViEq7qMVpuidXeQQnl0DQ\n8J5qfBlYnOja6LkOoQ4LQ8cnkjMGiy5msruNsSOnOj/LAw5kPJuOiruoYwti\nWtiq02t6zWjRRUYIH50pAux4W90gCzqI1xqQoaGJmcDfOLBN+JTw3nk8LRNN\nvW6pZaivlt7jO4fEELEo8z9UZxzOwgnX2p+6cUeeZTQdGtUe+vuvYYjaUIwc\nrKgBoBg0D0jmyZiNoWua7mpB86GocDd9qMmqr3NkRH+Zs5pw3kMxQh9Ofr51\nObn3ajI1pcoIMAoioX1a4OoBQFKlgxM2AilIdztRHV9smCphbuTFBNq/POUV\neg4c\r\n=SrEn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2mTbNcdmN3y0zZM5mKnWPXu5f/JJwHtbESeGAdOUxngIhAKtUhbEqabSLWB8YTp63dfz6/PMircSiGl1h2E4ykkDh"}]},"maintainers":[{"name":"daniloisr","email":"danilo.isr@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/miniprofiler_3.0.0_1545161020836_0.41050583972858634"},"_hasShrinkwrap":false},"3.0.1":{"name":"@daniloisr/miniprofiler","version":"3.0.1","description":"A simple but effective mini-profiler.","main":"lib/miniprofiler.js","scripts":{"start-services":"docker run -d -p 6060:6379 redis","lint":"eslint .","test":"mocha tests/ -c","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- tests/ -R spec","check-coverage":"istanbul check-coverage --statements 95 --branches 95 --functions 95 --lines 95","update-coveralls":"cat coverage/lcov.info | node ./node_modules/coveralls/bin/coveralls.js"},"repository":{"type":"git","url":"git+https://github.com/MiniProfiler/node.git"},"bugs":{"url":"http://github.com/MiniProfiler/node/issues"},"author":{"name":"Guilherme Oenning","email":"oenning.ti@gmail.com","url":"http://goenning.net/"},"contributors":[{"name":"Matt Jibson","email":"matt.jibson@gmail.com","url":"https://mattjibson.com/"},{"name":"Kevin Montrose"}],"license":"Apache-2.0","dependencies":{"lru-cache":"^4.0.1"},"tags":["profiler","performance","profiling","timing","web profiling"],"devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.11","docker-ip":"^2.0.1","eslint":"^3.1.1","express":"^4.13.4","hapi":"^13.5.0","istanbul":"^0.4.3","koa":"^1.2.1","koa-route":"^2.4.2","koa-views":"^4.1.0","debug":"^2.6.1","mocha":"^2.5.3","pug":"^2.0.0-beta2","redis":"^2.6.1","request":"^2.73.0","vision":"^4.1.0"},"gitHead":"bf9403c4ef0f80e37521e605c3d4f6062fc4fad4","homepage":"https://github.com/MiniProfiler/node#readme","_id":"@daniloisr/miniprofiler@3.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"daniloisr","email":"danilo.isr@gmail.com"},"dist":{"integrity":"sha512-ojY3s8mqLPDwTE/eT1y/T8wsFy32mJSDcSc0ard4T3whhXQwBIfo0Crg36aiTA5sDSeoWxTF0tNYBRrKxmEbTA==","shasum":"5139d4cf48ed0427410fc9caed7bed637a570ca8","tarball":"https://registry.npmjs.org/@daniloisr/miniprofiler/-/miniprofiler-3.0.1.tgz","fileCount":25,"unpackedSize":242135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPJmWCRA9TVsSAnZWagAAzJMP/0OQ07uEuSlQc4msK84Y\nAo9S9xZ4UIRn7lwFeqpSo0Mgfs5MviRz8+5snTGc7PbeEKA9e8Bnsm19kz0z\ni/tihWQKoj3/yKVD0krMI11bWE1WFmaEDF6RXVBGWKhggSjXmv0hfaYs+h6T\nlCg6Va/9z4f+qQ77+pSEQ+PFWh51cnvXpHpyVK0V9e4ousoeBiAltXSIL0/I\ns5VSOVLwYLNub8QE6oq7UUL40iARsWrYh0/S3fMLXRiiwKTtnrc/J/dTZTuB\nnJH2rNGBgSVo+AkPKbh3+V/js+18I6XLbVqKOJrNYErcziUeqcHEn1rF6Vtv\nwaDeCbs0LVVoTRyJMEGFexeOkzzebdTFkFfHcphPM55QsaH8u92XVmhDvlAb\n6jlO1zrL03GViK60RolntgH0CtQdTUXDIZL0lG3fnAjFXGTKVBrRxy6BUSHF\n4sLA9dpgx9No9jvqRk/MwPvbraqj606o46YWP5zQpzq3XmWu3bnjxnTcJQ7p\n/DS73bL5FvAij2PGin8/KpM3kPWSCMOunFgy+RYwRysb2MXm2XC5D5L56+Fi\nzSrfLCrP69TrKbu6HiORp88WFm6mzDLwhK+Dmd84xcIPAylOqo405vz83WcB\nYd8eh77h6cK6DmXDQ2HapCedPFnS+x7k0vAzBJbfaXjJj49woSA6467tPEWb\nCBQr\r\n=cryS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9hRspUcFZACNT1NTPU2eLPiSJZC6Lm9PDowX8kyzlWAIhAN59UWZHoZNvU/0CA8jxoAS3tZlBRMFeR7l1/m7n71j7"}]},"maintainers":[{"name":"daniloisr","email":"danilo.isr@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/miniprofiler_3.0.1_1547475349768_0.20529984523480183"},"_hasShrinkwrap":false}},"time":{"created":"2018-11-23T21:04:28.115Z","1.2.4":"2018-11-23T21:04:28.382Z","modified":"2022-04-05T02:41:44.679Z","2.0.0":"2018-11-26T02:09:15.739Z","3.0.0":"2018-12-18T19:23:40.965Z","3.0.1":"2019-01-14T14:15:49.893Z"},"maintainers":[{"name":"daniloisr","email":"danilo.isr@gmail.com"}],"description":"A simple but effective mini-profiler.","homepage":"https://github.com/MiniProfiler/node#readme","repository":{"type":"git","url":"git+https://github.com/MiniProfiler/node.git"},"contributors":[{"name":"Matt Jibson","email":"matt.jibson@gmail.com","url":"https://mattjibson.com/"},{"name":"Kevin Montrose"}],"author":{"name":"Guilherme Oenning","email":"oenning.ti@gmail.com","url":"http://goenning.net/"},"bugs":{"url":"http://github.com/MiniProfiler/node/issues"},"license":"Apache-2.0","readme":"# MiniProfiler for Node.js\r\n\r\nNode.js implementation of Stack Exchange's MiniProfiler\r\n\r\n[![NPM](https://img.shields.io/npm/v/miniprofiler.svg)](https://www.npmjs.com/package/miniprofiler)\r\n[![Build](https://travis-ci.org/MiniProfiler/node.svg?branch=master)](https://travis-ci.org/MiniProfiler/node)\r\n[![Coverage](https://coveralls.io/repos/github/MiniProfiler/node/badge.svg?branch=master)](https://coveralls.io/github/MiniProfiler/node?branch=master)\r\n![Dependencies](https://david-dm.org/MiniProfiler/node.svg)\r\n![devDependencies](https://david-dm.org/MiniProfiler/node/dev-status.svg#info=devDependencies)\r\n\r\n## Demonstration\r\n\r\nVisit [http://miniprofiler-demo.herokuapp.com](http://miniprofiler-demo.herokuapp.com) for a live demonstration.\r\n\r\n## Installation\r\n\r\n```bash\r\n$ npm install miniprofiler\r\n```\r\n\r\nYou can hook up your application with any of the following packages are available on npm:\r\n\r\n| Name      | About     | Version   |\r\n|-----------|-----------|-----------|\r\n| `miniprofiler-http` | Profile http(s) requests | [![NPM](https://img.shields.io/npm/v/miniprofiler-http.svg)](https://www.npmjs.com/package/miniprofiler-http) |\r\n| `miniprofiler-pg` | Profile [pg](https://www.npmjs.com/package/pg) queries | [![NPM](https://img.shields.io/npm/v/miniprofiler-pg.svg)](https://www.npmjs.com/package/miniprofiler-pg) |\r\n| `miniprofiler-redis`| Profile [redis](https://www.npmjs.com/package/redis) calls | [![NPM](https://img.shields.io/npm/v/miniprofiler-redis.svg)](https://www.npmjs.com/package/miniprofiler-redis) |\r\n\r\n## Usage\r\n\r\n### Simple usage with express.js\r\n\r\n`server.js`\r\n\r\n```javascript\r\nvar express = require('express')\r\n  , miniprofiler = require('miniprofiler')\r\n  , app = express();\r\n\r\napp.set('view engine', 'pug');\r\napp.use(miniprofiler.express());\r\n\r\napp.get('/', function(req, res) {\r\n  req.miniprofiler.step('Step 1', function() {\r\n    req.miniprofiler.step('Step 2', function() {\r\n      res.render('index');\r\n    });\r\n  });\r\n});\r\n\r\napp.listen(8080);\r\n```\r\n\r\n`index.pug`\r\n\r\n```javascript\r\ndoctype html\r\nhtml\r\n  head\r\n    title MiniProfiler Node.js Example\r\n  body\r\n    h1 Home Page\r\n    | !{miniprofiler.include()}\r\n```\r\n\r\nWhen visiting `localhost:8080`, you should see this.\r\n\r\n![](/examples/images/example0.png)\r\n\r\n## API\r\n\r\n### `miniprofiler.{framework}([options])`\r\n\r\nReplace `{framework}` with koa, express or hapi.\r\n\r\nThis function returns a framework specific middleware that is responsible for initializing MiniProfiler on each request.\r\n\r\n#### `options` object properties\r\n| Property  | Default   | Description |\r\n|-----------|-----------|-------------|\r\n| enable    | Always returns true | function(req, res) => boolean; this function is used to determine if the profiler should be enabled for the current request |\r\n| authorize | Always returns true | function(req, res) => boolean; this function is used to determine if the current request should be able to see the profiling results |\r\n\r\n### `miniprofiler.{framework}.for([provider])`\r\n\r\n`provider` is a call for any of the supported providers listed [here](#installation).\r\n\r\n### `miniprofiler.configure([options])`\r\n\r\n#### `options` object properties\r\n| Property  | Default   | Description |\r\n|-----------|-----------|-------------|\r\n| storage   | InMemoryStorage({ max: 100, maxAge: 1000 \\* 60 \\* 60 }) | InMemoryStorage or RedisStorage; used to store or fetch a string JSON blob of profiling information |\r\n| ignoredPaths | [ ] | string array ; any request whose `url` property is in ignoredPaths will not be profiled |\r\n| trivialDurationThresholdMilliseconds | 2.5 | double ; any step lasting longer than this will be considered trivial, and hidden by default |\r\n| popupShowTimeWithChildren | false | boolean ; whether or not to include the \"time with children\" column |\r\n| popupRenderPosition       | left  | 'left', 'right', 'bottomLeft' or 'bottomRight' ; which side of the screen to display timings on |\r\n\r\n#### `options.storage` examples\r\n\r\n#### InMemoryStorage\r\n\r\n```\r\nminiprofiler.configure({\r\n  storage: miniprofiler.storage.InMemoryStorage({ lruCacheOptions });\r\n})\r\n```\r\n\r\nRefer to [lru-cache](https://www.npmjs.com/package/lru-cache) documentation for `lruCacheOptions`.\r\n\r\n#### RedisStorage\r\n\r\n```\r\nminiprofiler.configure({\r\n  storage: miniprofiler.storage.RedisStorage(client);\r\n})\r\n```\r\n\r\nWhere `client` is an instance of [redis.createClient](https://www.npmjs.com/package/redis).\r\n","readmeFilename":"README.md"}