{"_id":"request-received","_rev":"4-b78e03a3359e31ffb7549755f272ff54","name":"request-received","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"request-received","description":"Route middleware for Koa and Express that adds a request received high-resolution timer and Date to the request object using easily accessible Symbols to prevent request object pollution.  Made for Cabin.","version":"0.0.1","author":{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"},"ava":{"failFast":true,"verbose":true},"bugs":{"url":"https://github.com/cabinjs/request-received/issues","email":"niftylettuce@gmail.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"contributors":[{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"}],"dependencies":{},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.5","@babel/preset-env":"^7.4.5","@commitlint/cli":"^8.0.0","@commitlint/config-conventional":"^8.0.0","ava":"^2.1.0","codecov":"^3.5.0","cross-env":"^5.2.0","eslint":"^5.16.0","eslint-config-xo-lass":"^1.0.3","eslint-plugin-node":"^9.1.0","express":"^4.17.1","fixpack":"^2.3.1","husky":"^2.4.1","koa":"^2.7.0","lint-staged":"^8.2.1","nyc":"^14.1.1","remark-cli":"^6.0.1","remark-preset-github":"^0.0.13","rimraf":"^2.6.3","supertest":"^4.0.2","xo":"^0.24.0"},"engines":{"node":">=6.4.0"},"homepage":"https://github.com/cabinjs/request-received","husky":{"hooks":{"pre-commit":"lint-staged && npm test","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"keywords":["Symbol","airbrake","bunyan","cabin","connect","date","diff","difference","express","for","high","hrtime","http","koa","log","logger","logging","loggly","morgan","morgan","ms","pino","process","process.hrtime","received","request","resolution","sentry","service","signale","start","started","timber","time","timer","timestamp","timing","tool","utility","winston","x-response-time"],"license":"MIT","lint-staged":{"linters":{"*.js":["xo --fix","git add"],"*.md":["remark . -qfo","git add"],"package.json":["fixpack","git add"]}},"main":"lib/index.js","prettier":{"singleQuote":true,"bracketSpacing":true,"trailingComma":"none"},"remarkConfig":{"plugins":["preset-github"]},"repository":{"type":"git","url":"https://github.com/cabinjs/request-received"},"scripts":{"ava":"cross-env NODE_ENV=test ava","build":"npm run build:clean && npm run build:lib","build:clean":"rimraf lib","build:lib":"babel src --out-dir lib","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","lint":"xo && remark . -qfo && eslint lib","nyc":"cross-env NODE_ENV=test nyc ava","test":"npm run build && npm run lint && npm run ava","test-coverage":"npm run build && npm run lint && npm run nyc"},"xo":{"prettier":true,"space":true,"extends":["xo-lass"]},"licenseText":"MIT License\n\nCopyright (c) 2019 Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"request-received@0.0.1","dist":{"shasum":"af6bb41ce08f249ce1e14de955a7cd5fbdd18e66","integrity":"sha512-qQaQKB7kp5X3cQ+mipZ3jS+0mlp4erMoznQr46u9l+65jml1EkyGSqUzpErI0AsbCJLuI11zvRYPvoVms3PQTA==","tarball":"https://registry.npmjs.org/request-received/-/request-received-0.0.1.tgz","fileCount":6,"unpackedSize":8853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdArxmCRA9TVsSAnZWagAAJKYP/ip6D/LfQNHhfNYZsnKi\nhc1hVJJJDOK5i6uetNwCidw/izXR4yGgrZzedTX3FUTu1zylQWrJCaqqSQX3\nxH/VEhGEYncfMdRuiNiRCmL/baRogbuMR+t+DT5bGo4QB2zwWiL1CQK0NGit\nR6GJUQYQvb2mdfoct8FE4UrXs6FOMUufV3pxO68MyNqzQQl4nkH/1ws4rH1T\n8fyHHvZWuGVWzWAMvDfQQdg/7AZdNOZo2MFpdV7xUoHJTVfmsIrGptTkc2kE\n8V95rdLaqzTKSg+Z9VRme5u0aQ72SYx/QEfRkP0DdViXULNdg4ES3mk0ze2C\n91x1QISn1+uw5x13Tz47+b3EjyzoiyBvJ5p3JdNjiqEp+bn2h7Ox39lk2IF5\nRlRdOSPWmuvyGbOOV138/UFxLbKlwqBw+aN+7ITxVkhmUZLjQP7GB8q3vHA1\nFkoXqesTEZxhB+poyUq2VZhcspWg3o9ENi467DpIBMkIEBg1qJNp3yplAeUi\naPvKw+mPtNTQ1hkSQhGZ3WWM7j5Vldu5oDkFAJhfj8BrZs+bYJNpH1P2/7XK\nK0QR3VPZjvcy9UbuxvTpxaAp/0Ca3jAtmOv+J1nwohz7HONdOTT4NjDIe+2D\nuCqvRNJJow7T5msXlaGMB+3SvzJYWNryJM0p/aRDrdgqS1qh07XWhNxRjG86\nBd8R\r\n=RlgZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDsj2k7VscVjMsVcQ4W0Y544p0xTOio4eXOhgfmDxnJAiEAg9SFHWkWX890KlRQcylHdETnFophnSsMqKaYQAwN4wM="}]},"maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"}],"_npmUser":{"name":"niftylettuce","email":"niftylettuce@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request-received_0.0.1_1560460389787_0.4357916661626011"},"_hasShrinkwrap":false},"0.0.2":{"name":"request-received","description":"Route middleware for Koa and Express that adds a request received high-resolution timer and Date to the request object using easily accessible Symbols to prevent request object pollution.  Made for Cabin.","version":"0.0.2","author":{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"},"ava":{"failFast":true,"verbose":true},"bugs":{"url":"https://github.com/cabinjs/request-received/issues","email":"niftylettuce@gmail.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"contributors":[{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"}],"dependencies":{},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.5","@babel/preset-env":"^7.4.5","@commitlint/cli":"^8.0.0","@commitlint/config-conventional":"^8.0.0","ava":"^2.1.0","codecov":"^3.5.0","cross-env":"^5.2.0","eslint":"^5.16.0","eslint-config-xo-lass":"^1.0.3","eslint-plugin-node":"^9.1.0","express":"^4.17.1","fixpack":"^2.3.1","husky":"^2.4.1","koa":"^2.7.0","lint-staged":"^8.2.1","nyc":"^14.1.1","remark-cli":"^6.0.1","remark-preset-github":"^0.0.13","rimraf":"^2.6.3","supertest":"^4.0.2","xo":"^0.24.0"},"engines":{"node":">=6.4.0"},"homepage":"https://github.com/cabinjs/request-received","husky":{"hooks":{"pre-commit":"lint-staged && npm test","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"keywords":["Symbol","airbrake","bunyan","cabin","connect","date","diff","difference","express","for","high","hrtime","http","koa","log","logger","logging","loggly","morgan","morgan","ms","pino","process","process.hrtime","received","request","resolution","sentry","service","signale","start","started","timber","time","timer","timestamp","timing","tool","utility","winston","x-response-time"],"license":"MIT","lint-staged":{"linters":{"*.js":["xo --fix","git add"],"*.md":["remark . -qfo","git add"],"package.json":["fixpack","git add"]}},"main":"lib/index.js","prettier":{"singleQuote":true,"bracketSpacing":true,"trailingComma":"none"},"remarkConfig":{"plugins":["preset-github"]},"repository":{"type":"git","url":"https://github.com/cabinjs/request-received"},"scripts":{"ava":"cross-env NODE_ENV=test ava","build":"npm run build:clean && npm run build:lib","build:clean":"rimraf lib","build:lib":"babel src --out-dir lib","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","lint":"xo && remark . -qfo && eslint lib","nyc":"cross-env NODE_ENV=test nyc ava","test":"npm run build && npm run lint && npm run ava","test-coverage":"npm run build && npm run lint && npm run nyc"},"xo":{"prettier":true,"space":true,"extends":["xo-lass"]},"licenseText":"MIT License\n\nCopyright (c) 2019 Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"request-received@0.0.2","dist":{"shasum":"4b71d15684f731a673e8ac8acc54e1c39d02f82b","integrity":"sha512-oaXRgTay1rP8nlbTpLm05DMaV41t33dBalD2LBoPyr4w1cBjnk1vnXIyA4/tUjjMp3lXrlZRVJ9fLhr5stFCKQ==","tarball":"https://registry.npmjs.org/request-received/-/request-received-0.0.2.tgz","fileCount":6,"unpackedSize":10165,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdA1jVCRA9TVsSAnZWagAAYYgQAIMroUrLIo32rYSxNmIW\nCFEGTkiSP67JOoiSlQei3Gw8GHJZFX5evNYXHQ2a+CpoyaoHDOzwbVOJ5vGN\nSTWN+OYv5mAG0zqEX+fajFKezzrbZrod+/AJl0Kd8OyYRK1su0akCH4XyWHg\nTaLPEm+t558/8Q97hofcPtEHFGzrC40Y2UBYpa51SwbYFkqfFf21zKIIY08T\nYT70Cog1vFUVaI8ChRt0lLSvRzH9xPBlFekNRVG5GworvrhkuiiiRq/haWEV\nP1ZSvXe9PxDHne/TawvU/lPRSrJMqtRvQWPem2qQyoKFIO6fMw+KMKPHu2h+\n4y7wJ6z1T5J57fzz8WFhML65xXERPp3qd7mW9Blxt480ZseadDTMM/FKXgv9\nfHoe/0W5fxpLp7d9GHqB/ZpfXxWcnvwZQRU0sMOgGgB7I3Khx8feYWJ+029i\nhtGmLJUVTOjxoc8/DvB5cyis748xNDsVxEhpkX6xXUZuwK+F3Wnjfp/g+U3L\nsSpYei99M2ZiZmXIb9HDCUgHozRuo7kdtyfki7TGRYj7/ZWbYGNEm71oSFV1\ngJClofIEXtg8Fq+64kR8K2IiugR7y1pTnUABa6s+ohNVgQdcSh9OJ/eruF1l\ncDCx0BJjz159qI4BYilQlGY25Asdx4Cr0okdlsIyzbzzocC7SzyukQiFlAfG\nNifo\r\n=51zs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCINeLagxe2BlARXQNN+jbpZbRvAZPiEOSFYRkGss/1uwIgVACdB6oUp1Fhfva2tuPodP/j8FPV4irA85CL4WXO/0k="}]},"maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"}],"_npmUser":{"name":"niftylettuce","email":"niftylettuce@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request-received_0.0.2_1560500437054_0.746299057270388"},"_hasShrinkwrap":false},"0.0.3":{"name":"request-received","description":"Route middleware for Koa and Express that adds a request received high-resolution timer and Date to the request object using easily accessible Symbols to prevent request object pollution.  Made for Cabin.","version":"0.0.3","author":{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"},"ava":{"failFast":true,"verbose":true},"bugs":{"url":"https://github.com/cabinjs/request-received/issues","email":"niftylettuce@gmail.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"contributors":[{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"}],"dependencies":{},"devDependencies":{"@babel/cli":"^7.6.0","@babel/core":"^7.6.0","@babel/preset-env":"^7.6.0","@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","ava":"^2.4.0","codecov":"^3.5.0","cross-env":"^6.0.0","eslint":"^6.4.0","eslint-config-xo-lass":"^1.0.3","eslint-plugin-node":"^10.0.0","express":"^4.17.1","fixpack":"^2.3.1","husky":"^3.0.5","koa":"^2.8.1","lint-staged":"^9.2.5","nyc":"^14.1.1","remark-cli":"^7.0.0","remark-preset-github":"^0.0.16","rimraf":"^3.0.0","supertest":"^4.0.2","xo":"^0.24.0"},"engines":{"node":">=6.4.0"},"homepage":"https://github.com/cabinjs/request-received","husky":{"hooks":{"pre-commit":"lint-staged && npm test","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"keywords":["Symbol","airbrake","bunyan","cabin","connect","date","diff","difference","express","for","high","hrtime","http","koa","log","logger","logging","loggly","morgan","morgan","ms","pino","process","process.hrtime","received","request","resolution","sentry","service","signale","start","started","timber","time","timer","timestamp","timing","tool","utility","winston","x-response-time"],"license":"MIT","lint-staged":{"*.js":["xo --fix","git add"],"*.md":["remark . -qfo","git add"],"package.json":["fixpack","git add"]},"main":"lib/index.js","prettier":{"singleQuote":true,"bracketSpacing":true,"trailingComma":"none"},"remarkConfig":{"plugins":["preset-github"]},"repository":{"type":"git","url":"https://github.com/cabinjs/request-received"},"scripts":{"ava":"cross-env NODE_ENV=test ava","build":"npm run build:clean && npm run build:lib","build:clean":"rimraf lib","build:lib":"babel src --out-dir lib","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","lint":"xo && remark . -qfo && eslint lib","nyc":"cross-env NODE_ENV=test nyc ava","test":"npm run build && npm run lint && npm run ava","test-coverage":"npm run build && npm run lint && npm run nyc"},"xo":{"prettier":true,"space":true,"extends":["xo-lass"]},"licenseText":"MIT License\n\nCopyright (c) 2019 Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"request-received@0.0.3","dist":{"shasum":"167e5809ed8f6cf0dde638db39cf50e08017a16c","integrity":"sha512-yj9C/+CkFIleI0XwEMkgj5KOfD9VzsI0Xbb/e/x1mvhwPN3/lt/wkH9AomV5MyBdZDhOkbjIIfj5ilc3MkhTvg==","tarball":"https://registry.npmjs.org/request-received/-/request-received-0.0.3.tgz","fileCount":6,"unpackedSize":16939,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdglsfCRA9TVsSAnZWagAAwuoP/AxjW5z6BXGwe3VMzNmm\nRW/yxalyQUh2DDDPuOiipkszkKbBHg7eKHvo+vc6XLloiSYsXNveE5mY/Gup\nfYcYYGWS2LKVLVvPh+cpTrwPtLZXdwa+oLB4YIEvbxjrnpxTatNE4ES/ZP3E\n9m5u61Nb741JSK7ALrTC41IA1d9FGNb0DCeT6NUzLIRgpEQHzjZ2gYGkx8Bp\nxZvhg8x/K/l3oXpipU5yL4O7X1XAY8vJXiPpekS2MHYql6uaqWuh+Zl4Etlx\n3oALiiNOELWl90GyHeePWPb1qAYCQ2gUaZ/Y6q8R8jSfB4qPU24S1P39Vnhe\nikjQytjNWzuaNesCgu1FVCqhfAfKdqwJ6C9V3g+jpLHlUdvfGmj6VVTJGs1k\nyO2tUxKuE7Kn1l2IaTrEkKBX+9Fw5ZwARpgijT/u4N9p2GBYZj5+eq5PcmrW\nMptLCbmO0i5APd1YxAn5Vw0aJR78GEUcbstloJwbZmN6de0naWyCaN6qCUJW\nZhFaarfWmNlMcqaBgIoo3agLs2TBY7DKVHsZnz6Taubt3789vhhOcDTZyEPj\n3AxcnvZL9RUSmuLLx4HKPKYDznaBZ2jJ0IiUtgTOwxcGMr5hOGrsRDaPUOjc\nUj0eEKQA0f6NuP+hrl17vGrI3cC45Vv4lGY5qVuh/yaR68SDlzVJ+aPB5VUC\nnHdu\r\n=qFAv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGinN1Q5jnUPJW78hhMOXeOMY3qRYhOM0dja3nchYPw5AiEAiSrffECeklgof1itMvssVyAHEGUNsWsHhyEcGy3PEdc="}]},"maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"}],"_npmUser":{"name":"niftylettuce","email":"niftylettuce@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request-received_0.0.3_1568824095188_0.3832408526514848"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-13T21:13:09.786Z","0.0.1":"2019-06-13T21:13:09.905Z","modified":"2022-05-15T20:06:44.358Z","0.0.2":"2019-06-14T08:20:37.147Z","0.0.3":"2019-09-18T16:28:15.341Z"},"maintainers":[{"email":"niftylettuce@gmail.com","name":"niftylettuce"},{"email":"npm@titanism.com","name":"titanism"}],"description":"Route middleware for Koa and Express that adds a request received high-resolution timer and Date to the request object using easily accessible Symbols to prevent request object pollution.  Made for Cabin.","homepage":"https://github.com/cabinjs/request-received","keywords":["Symbol","airbrake","bunyan","cabin","connect","date","diff","difference","express","for","high","hrtime","http","koa","log","logger","logging","loggly","morgan","morgan","ms","pino","process","process.hrtime","received","request","resolution","sentry","service","signale","start","started","timber","time","timer","timestamp","timing","tool","utility","winston","x-response-time"],"repository":{"type":"git","url":"https://github.com/cabinjs/request-received"},"contributors":[{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"}],"author":{"name":"Nick Baugh","email":"niftylettuce@gmail.com","url":"http://niftylettuce.com/"},"bugs":{"url":"https://github.com/cabinjs/request-received/issues","email":"niftylettuce@gmail.com"},"license":"MIT","readme":"# request-received\n\n[![build status](https://img.shields.io/travis/com/cabinjs/request-received.svg)](https://travis-ci.com/cabinjs/request-received)\n[![code coverage](https://img.shields.io/codecov/c/github/cabinjs/request-received.svg)](https://codecov.io/gh/cabinjs/request-received)\n[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)\n[![license](https://img.shields.io/github/license/cabinjs/request-received.svg)](LICENSE)\n[![npm downloads](https://img.shields.io/npm/dt/request-received.svg)](https://npm.im/request-received)\n\n> Route middleware for Koa and Express that adds a request received high-resolution timer and Date to the request object using easily accessible Symbols to prevent request object pollution.  Made for [Cabin][].\n\n\n## Table of Contents\n\n* [Install](#install)\n* [Usage](#usage)\n  * [Express](#express)\n  * [Koa](#koa)\n* [Contributors](#contributors)\n* [License](#license)\n\n\n## Install\n\n[npm][]:\n\n```sh\nnpm install request-received\n```\n\n[yarn][]:\n\n```sh\nyarn add request-received\n```\n\n\n## Usage\n\n### Express\n\n> Symbols are automatically added to `req` object in route middleware:\n\n```js\nconst express = require('express');\nconst Cabin = require('cabin');\nconst requestReceived = require('request-received');\nconst responseTime = require('response-time');\nconst requestId = require('express-request-id');\n\nconst startAt = Symbol.for('request-received.startAt');\nconst startTime = Symbol.for('request-received.startTime');\n\nconst app = express();\nconst Cabin = new Cabin();\n\napp.use(requestReceived);\n\napp.use((req, res, next) => {\n  console.log('startAt', req[startAt]); // `process.hrtime()`\n  // [ 472542, 431456521 ]\n  console.log('startTime', req[startTime]); // Date.now()\n  // 1560499520000\n  next();\n});\n\napp.use(responseTime());\napp.use(requestId());\napp.use(cabin.middleware);\n\napp.listen();\n```\n\n### Koa\n\n> Symbols are automatically added to `ctx`, `ctx.req`, and `ctx.request` objects in route middleware:\n\n```js\nconst Koa = require('koa');\nconst koaConnect = require('koa-connect');\nconst responseReceived = require('response-received');\nconst responseTime = require('response-time');\nconst requestId = require('express-request-id');\n\nconst startAt = Symbol.for('request-received.startAt');\nconst startTime = Symbol.for('request-received.startTime');\n\nconst app = new Koa();\nconst Cabin = new Cabin();\n\napp.use(requestReceived);\n\napp.use((ctx, next) => {\n  console.log('startAt', ctx[startAt]); // `process.hrtime()`\n  // [ 472542, 431456521 ]\n  console.log('startTime', ctx[startTime]); // Date.now()\n  // 1560499520000\n\n  // note that the symbols are also accessible via:\n  // ctx.req[startAt]\n  // ctx.request[startAt]\n  // ctx.req[startTime]\n  // ctx.request[startTime]\n\n  return next();\n});\n\napp.use(koaConnect(responseTime));\napp.use(requestId());\napp.use(cabin.middleware);\n\napp.listen();\n```\n\n\n## Contributors\n\n| Name           | Website                    |\n| -------------- | -------------------------- |\n| **Nick Baugh** | <http://niftylettuce.com/> |\n\n\n## License\n\n[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/)\n\n\n## \n\n[npm]: https://www.npmjs.com/\n\n[yarn]: https://yarnpkg.com/\n\n[cabin]: https://cabinjs.com\n","readmeFilename":"README.md"}