{"_id":"@box-maker/hapi-route-logging","_rev":"8-92eefda3d4435d6674d4806d1ec1aad5","name":"@box-maker/hapi-route-logging","description":"A simple plugin to print on screen the routes consulted, ideal during development.","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@box-maker/hapi-route-logging","version":"0.1.0","description":"A simple plugin to print on screen the routes consulted, ideal during development.","publishConfig":{"access":"public"},"main":"lib/index.js","xo":{"space":true},"scripts":{"lint":"xo --ignore lib/*.* --env=mocha","transpile":"babel src --out-dir lib --source-maps","pretest":"npm run lint && npm run transpile","watch":"","test":"mocha ./test/test.js","coverage":""},"repository":{"type":"git","url":"git+https://github.com/box-maker/hapi-route-logging.git"},"author":{"name":"Alejandro Alvarez","email":"eliluminado00@gmail.com","url":"https://github.com/eliluminado"},"license":"MPL-2.0","bugs":{"url":"https://github.com/box-maker/hapi-route-logging/issues"},"homepage":"https://github.com/box-maker/hapi-route-logging","engines":{"node":">=4.8.0"},"keywords":["hapi","plugin","hapi-plugin","routes","logging","console"],"devDependencies":{"babel-cli":"^6.26.0","babel-preset-env":"^1.6.0","chai":"^4.1.1","coveralls":"^2.13.1","github-sync-labels-milestones":"^0.3.1","hapi":"^16.5.2","mocha":"^3.5.0","mocha-lcov-reporter":"^1.3.0","xo":"^0.18.2"},"dependencies":{"chalk":"^2.1.0"},"peerDependencies":{"hapi":">=13.0.0"},"gitHead":"d790ed5583ab19d20e5a38bd4fcaf510fd3a325e","_id":"@box-maker/hapi-route-logging@0.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"eliluminado","email":"eliluminado00@gmail.com"},"dist":{"integrity":"sha512-oRIT/b1oPOW8DqNCHWSRnpQe45RDdt6WdqxuphiGcPruC29by1OnwvmQOP0cQ9D0apJfIWtO9cD19BADaMkHfw==","shasum":"478eec5b56aa0280d7c4ff06f5d6e2b295cb82d0","tarball":"https://registry.npmjs.org/@box-maker/hapi-route-logging/-/hapi-route-logging-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVVKVu/qGSevoElbdXxcxCTouDAKlO74gZuhuMkXehrgIhAOZaztBWvWi45YCr9Cd8tWr9qfVEkbwyzaKiI5WVzCnQ"}]},"maintainers":[{"name":"eliluminado","email":"eliluminado00@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi-route-logging-0.1.0.tgz_1503470909951_0.26626082975417376"}},"0.1.1":{"name":"@box-maker/hapi-route-logging","version":"0.1.1","description":"A simple plugin to print on screen the routes consulted, ideal during development.","publishConfig":{"access":"public"},"main":"lib/index.js","xo":{"space":true},"scripts":{"lint":"xo --ignore lib/*.* --env=mocha","transpile":"babel src --out-dir lib --source-maps","pretest":"npm run lint && npm run transpile","watch":"","test":"mocha ./test/test.js","coverage":""},"repository":{"type":"git","url":"git+https://github.com/box-maker/hapi-route-logging.git"},"author":{"name":"Alejandro Alvarez","email":"eliluminado00@gmail.com","url":"https://github.com/eliluminado"},"license":"MPL-2.0","bugs":{"url":"https://github.com/box-maker/hapi-route-logging/issues"},"homepage":"https://github.com/box-maker/hapi-route-logging","engines":{"node":">=4.8.0"},"keywords":["hapi","plugin","hapi-plugin","routes","logging","console"],"devDependencies":{"babel-cli":"^6.26.0","babel-preset-env":"^1.6.0","chai":"^4.1.1","coveralls":"^2.13.1","github-sync-labels-milestones":"^0.3.1","hapi":"^16.5.2","mocha":"^3.5.0","mocha-lcov-reporter":"^1.3.0","xo":"^0.18.2"},"dependencies":{"chalk":"^2.1.0"},"peerDependencies":{"hapi":">=13.0.0"},"gitHead":"2587cbefb15056523381801bebbc58e663fa45f3","_id":"@box-maker/hapi-route-logging@0.1.1","_shasum":"d7bba28e00ee61632995ce9126f45e32d51abc05","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"eliluminado","email":"eliluminado00@gmail.com"},"dist":{"shasum":"d7bba28e00ee61632995ce9126f45e32d51abc05","tarball":"https://registry.npmjs.org/@box-maker/hapi-route-logging/-/hapi-route-logging-0.1.1.tgz","integrity":"sha512-lBpgygPduASCvindt+HoDPjPIQelWKbztRJz2DkJqd4jqsZYY0+zD5QB13L+YRLTdjMG2KtXyhMPnYZ37oIA0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIl+0qoNJw9Ijs9qhzCvQlLEvwaXr6xxc7vTtHyZrM9AIgHDXjEwfN2nLShs79nOLS75DhNz7f8I29mpc6ONK1HcY="}]},"maintainers":[{"name":"eliluminado","email":"eliluminado00@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi-route-logging-0.1.1.tgz_1503512248282_0.8776847119443119"}},"0.2.0":{"name":"@box-maker/hapi-route-logging","version":"0.2.0","description":"A simple plugin to print on screen the routes consulted, ideal during development.","publishConfig":{"access":"public"},"main":"lib/index.js","xo":{"ignores":["lib/**/*.*","lib/*.*"],"space":true,"rules":{"no-warning-comments":"off","import/extensions":[2,{"js":"never","json":"always"}],"import/prefer-default-export":"off"}},"scripts":{"lint":"xo --ignore lib/*.* --env=mocha","transpile":"babel src --out-dir lib --source-maps","pretest":"npm run lint && npm run transpile","watch":"nodemon --config nodemon.json examples/index.js","test":"mocha ./test/test.js","coverage":""},"repository":{"type":"git","url":"git+https://github.com/box-maker/hapi-route-logging.git"},"author":{"name":"Alejandro Alvarez","email":"eliluminado00@gmail.com","url":"https://github.com/eliluminado"},"license":"MPL-2.0","bugs":{"url":"https://github.com/box-maker/hapi-route-logging/issues"},"homepage":"https://github.com/box-maker/hapi-route-logging","engines":{"node":">=4.8.0"},"keywords":["hapi","plugin","hapi-plugin","routes","logging","console"],"devDependencies":{"babel-cli":"^6.26.0","babel-preset-env":"^1.6.0","chai":"^4.1.1","coveralls":"^2.13.1","github-sync-labels-milestones":"^0.3.1","hapi":"^16.5.2","mocha":"^3.5.0","mocha-lcov-reporter":"^1.3.0","nodemon":"^1.11.0","xo":"^0.18.2"},"dependencies":{"chalk":"^2.1.0","columnify":"^1.5.4","joi":"^10.6.0","latest-version":"^3.1.0","semver":"^5.4.1"},"peerDependencies":{"hapi":">=13.0.0"},"gitHead":"dc7762245463727aad1abb2d5db6f7a3c35c47f8","_id":"@box-maker/hapi-route-logging@0.2.0","_shasum":"c2ca1a26083d2ae8d3aa116fcdccfe246863d293","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"eliluminado","email":"eliluminado00@gmail.com"},"dist":{"shasum":"c2ca1a26083d2ae8d3aa116fcdccfe246863d293","tarball":"https://registry.npmjs.org/@box-maker/hapi-route-logging/-/hapi-route-logging-0.2.0.tgz","integrity":"sha512-vKeDhPh5p+KwGH0faASzCUET07ivhVZ6Oyb8Ub5dFnhDnsik2Z9zmr3yckWRHkSopVymDF07N+8WCA9tbhRtSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCk4b/+FYiHSA2H1IOGg7x9MQu4RTlaCJR13FiBdyPwYAIgDNMTwEaxWSblpusCe5tQMdRN7SsPrnRQJTqrMdvvm1g="}]},"maintainers":[{"name":"eliluminado","email":"eliluminado00@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi-route-logging-0.2.0.tgz_1504476761643_0.004017379600554705"}}},"readme":"# hapi-route-logging\n\nA simple plugin to print on screen the routes consulted, ideal during development.\n\n<p align=\"center\">\n  <a href=\"https://travis-ci.org/box-maker/hapi-route-logging\">\n    <img src=\"https://img.shields.io/travis/box-maker/hapi-route-logging.svg\" alt=\"Travis CI\">\n  </a>\n  <a href=\"https://greenkeeper.io/\">\n    <img src=\"https://badges.greenkeeper.io/box-maker/hapi-route-logging.svg\" alt=\"Greenkeeper\">\n  </a>\n  <a href=\"https://github.com/box-maker/hapi-route-logging\">\n    <img src=\"https://img.shields.io/coveralls/box-maker/hapi-route-logging.svg\" alt=\"Coveralls\">\n  </a>\n  <a href=\"https://www.npmjs.com/package/@box-maker/hapi-route-logging\">\n    <img src=\"https://img.shields.io/npm/v/@box-maker/hapi-route-logging.svg\" alt=\"Version\">\n  </a>\n  <a href=\"https://nodejs.org/download/release/latest/\">\n    <img src=\"https://img.shields.io/node/v/@box-maker/hapi-route-logging.svg\" alt=\"Node Minimum version\">\n  </a>\n  <a href=\"https://github.com/sindresorhus/xo\">\n    <img src=\"https://img.shields.io/badge/code_style-XO-5ed9c7.svg\" alt=\"XO code style\">\n  </a>\n</p>\n\n\n## Introduction\n\nThose who have tried other backend frameworks like Django or Flask will have noticed that when you run the development server, this shows information about each request made. This plugin tries to imitate this simple functionality, it does this by displaying a brief start at the beginning with basic information and then showing information is brief but useful on every request.\n\n![Basic capture](images/screenshots/example_basic.jpg?raw=true)\n\n## Install\n\n### Requirements\n\nThis plugin has been tested to work with Node in version 4.8.0 and higher, there's no guarantee of performance or support on lower versions.\n\nThis plugin is tested with the latest version of Hapi.js\n\nFor installation use the Node Package Manager (npm) or Yarn\n\n### With npm:\n\nFrom npm directory:\n\n```bash\n$ npm install -D @box-maker/hapi-route-logging\n```\n\nFrom source\n\n**WARNING**: May be unstable, but includes all changes made\n\n```bash\n$ npm install git+https://github.com/box-maker/hapi-route-logging.git\n```\n\n### With yarn:\n\nFrom npm directory:\n\n```bash\n$ yarn add -D @box-maker/hapi-route-logging\n```\n\nFrom source\n\n**WARNING**: May be unstable, but includes all changes made\n\n```bash\n$ yarn add https://github.com/box-maker/hapi-route-logging.git\n```\n\n\n## Usage\n\nYou can find complete examples inside the *examples* directory, both using **require** and **import**\n\n### Import\n\nUsing *require*\n\n```javascript\nconst hapiRouteLogging = require('@box-maker/hapi-route-logging');\n```\n\nUsing *import* (Requires [Babel](https://babeljs.io/))\n\n```javascript\nimport hapiRouteLogging from '@box-maker/hapi-route-logging';\n```\n\n### Registration\n\nWithout options\n\n```javascript\nserver.register(hapiRouteLogging, err => {\n  if (err) {\n    throw err;\n  }\n});\n```\n\nWith options\n\n```javascript\nserver.register({\n  register: hapiRouteLogging,\n  options: {\n    showRoutes: true\n  }\n}, err => {\n  if (err) {\n    throw err;\n  }\n});\n```\n\nLoading multiple plugins\n\n```javascript\nserver.register([\n  {\n    register: hapiRouteLogging,\n    options: {\n      showRoutes: false,\n      showRoutesList: true\n    }\n  },\n  {\n    register: otherPlugin,\n    options: {}\n  }\n], err => {\n  if (err) {\n    throw err;\n  }\n});\n```\n\n### Options\n\nThe following options are available:\n\n#### showRoutes (Default: Enable)\n\nEnables the displayed information on the routes consulted\n\n#### showRoutesList (Default: Disabled)\n\nThis display the routes table to console at startup\n\n#### checkUpgrade (Default: Disabled)\n\nVerify that the latest version of Hapi is being used\n\n## Development\n\nDependencies |\n------------ |\n[![David](https://img.shields.io/david/box-maker/hapi-route-logging.svg)](https://github.com/box-maker/hapi-route-logging) |\n[![David](https://img.shields.io/david/dev/box-maker/hapi-route-logging.svg)](box-maker/hapi-route-logging) |\n\n\nFirst you have to install all dependencies:\n\n```bash\nyarn install\n```\n\nor\n\n```bash\nnpm install\n```\n\nTo execute all unit tests once, use:\n\n```bash\n$ npm test\n```\n\nor to run tests based on file watcher, use:\n\n```bash\n$ npm start\n```\n\nTo get information about the test coverage, use:\n\n```bash\n$ npm run coverage\n```\n\n\n## Contribution\n\nFork this repository and push in your ideas.\n\nDo not forget to add corresponding tests to keep up 100% test coverage.\n\n\n## [License](https://www.mozilla.org/en-US/MPL/2.0/)\n\nThis plugin is licensed under the Mozilla Public License Version 2.0, you can find a copy of this in the file **LICENSE**. Please respect the same.\n","maintainers":[{"name":"eliluminado","email":"eliluminado00@gmail.com"}],"time":{"modified":"2022-06-12T15:26:57.245Z","created":"2017-08-23T06:48:30.070Z","0.1.0":"2017-08-23T06:48:30.070Z","0.1.1":"2017-08-23T18:17:29.401Z","0.2.0":"2017-09-03T22:12:43.123Z"},"homepage":"https://github.com/box-maker/hapi-route-logging","keywords":["hapi","plugin","hapi-plugin","routes","logging","console"],"repository":{"type":"git","url":"git+https://github.com/box-maker/hapi-route-logging.git"},"author":{"name":"Alejandro Alvarez","email":"eliluminado00@gmail.com","url":"https://github.com/eliluminado"},"bugs":{"url":"https://github.com/box-maker/hapi-route-logging/issues"},"license":"MPL-2.0","readmeFilename":"README.md","users":{"eliluminado":true}}